LinuxQuestions.org
Review your favorite Linux distribution.
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 04-27-2007, 02:30 AM   #1
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Rep: Reputation: 30
help with command line options


do anybody here knows a site that gives a complete list of bash's command line options and its corresponding definition like -h/--help...thank you...
 
Old 04-27-2007, 02:47 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Try this

Regards
 
Old 04-27-2007, 05:05 AM   #3
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
im referring to the command options the "[OPTIONS]" thing...like the -h/--help, -gt, -ge, -lt, -le etc..
 
Old 04-27-2007, 05:07 AM   #4
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
wah...i can view it using "ls --help"..lol..but if you have sites that has complete list of these options, please please please do post it here..it will be very helpful for my reference..
 
Old 04-27-2007, 05:22 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
I think I understand the question. In Windows, doing "<command> -?" brings up a list of switches to use with the command.

In Linux, if you are compiling, do
Code:
./configure --help|less
and you will get the list in an easily scrollable format.
 
Old 04-27-2007, 05:43 AM   #6
mechdave
Member
 
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
Post RE: help with command line options

With Linux you have the man command, so if you type "man ls" you get a manual on the usage of ls. The same goes for nearly every program in Linux.
Happy Linuxing,
Mechdave
 
Old 04-27-2007, 06:15 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
The command-line options are different for each command (There are a few commonalities like -a for all, or -R for recursive)
IMHO, you are far better off learning each command with the options that you need (most you will never use)

Things like -gt, -ge, -lt, -le don't look like like options, but rather parts of expressions---as in "if( x gt y )"
 
Old 04-29-2007, 07:26 PM   #8
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pixellany
The command-line options are different for each command (There are a few commonalities like -a for all, or -R for recursive)
IMHO, you are far better off learning each command with the options that you need (most you will never use)

Things like -gt, -ge, -lt, -le don't look like like options, but rather parts of expressions---as in "if( x gt y )"
yeah yeah, -lt -gt etc are relational operators replacing the signs >, =, < etc... but i think, from what i've learned, the command ((....)) supports the operational signs(<,>,= etc) and the [...] supports the -gt blah blah...(am i correct?) lol...thank you guys for your help...i mean..hehehe..im a beginner dude...i will greatly appreciate if someone, preferably an expert in linux commands or bash scripting, to evaluate my progress..
 
  


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
Command Line Options AUSanders79 Linux - Software 8 03-10-2005 10:24 AM
Help with command line options(ksh) SeT Programming 2 11-29-2004 06:54 PM
gcj command line options m3rc_2003 Programming 0 12-03-2003 05:40 AM
WINE and command line options Power User Linux - Software 2 09-14-2003 06:16 PM
Command Line Options in C++ crichards Programming 5 03-08-2003 03:42 PM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration