LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2010, 06:44 AM   #1
umeshgupta1987
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Rep: Reputation: 0
bash: ls-l:command not found


i m getting this kind of error every time. when i am using different option with commands.. Like i have used ls-l. Then Got the error
bash: ls-l:command not found.


Please help in this case....
 
Old 10-03-2010, 06:46 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
ls is the command, -l is the option. There's a space between them. ls -l.

Edit: To clarify:

A command consists of one or more "words" separated by blank space.

The first word is the command name.
Code:
(Two simple commands.  Command will run using default parameters)
ls
gedit
After that come options, which control the behavior of the command. These are usually preceded by - or --.
Code:
ls -l
gedit --help
Then there are arguments. These are usually the filenames or other strings that the command will operate on.
Code:
ls -l /home
gedit filename.txt
Sometimes an option is also followed by an extra argument or added setting.
Code:
ls --color=always
firefox --new-window http://www.linuxquestions.org
And finally, multiple short options can often be combined, if they don't need to be followed by extra arguments.
Code:
ls -al
(This is the same as "ls -a -l")

Last edited by David the H.; 10-03-2010 at 07:10 AM. Reason: as above, but hit save too early
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: ns: command not found using ns-2.31 Vixxx Linux - Software 25 12-12-2018 01:39 PM
bash command not found gobicse Linux - Newbie 3 12-19-2007 05:46 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
bash: pg: command not found Chomper Programming 2 02-05-2005 02:22 AM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration