LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 07: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, 07:46 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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 08:10 AM. Reason: as above, but hit save too early
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 23 11-12-2012 04:45 AM
bash command not found gobicse Linux - Newbie 3 12-19-2007 06:46 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-28-2006 12:57 AM
bash: pg: command not found Chomper Programming 2 02-05-2005 03:22 AM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 09:52 AM

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

All times are GMT -5. The time now is 04:22 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration