Linux commands

Rick rsobba at kcnet.com
Wed Dec 25 14:31:33 CST 2002


Thanks all for the help, but maybe I should not have said I was familiar
with man and info. Can anyone tell me if within man pages, info or anywhere
within bash that there is a command that will list all the commands in
alphabetical order with a brief description of each??

thanks again
Rick

-----Original Message-----
From: Duane Attaway [mailto:dattaway at dattaway.org]
Sent: Tuesday, December 24, 2002 8:19 AM
To: rsobba at kcnet.com
Cc: kclug at kclug.org
Subject: Re: Linux commands

On Tue, 24 Dec 2002 rsobba at kcnet.com wrote:

> With Windows XP I am able to type help at a command prompt and get a
> listing of commands with a brief description. I am familiar with man
> pages and info but is there a similar command in Linux as help in XP?

You have a few options in linux.  If you are in the BASH shell, you may
have command line completion.  Hitting the TAB key twice will yield you
all executable files in your PATH environment variable.  This will give
you several thousand commands (or more...)

The great "apropos" search:

apropos <something>

To be a bit more selective, you can use this "apropos" command.  Its like
a google search of the term you are looking for and lists a summary.  The
"makewhatis" command creates this database by reading all man pages.
Since this database is compiled from man pages, use the man command to
find out more from the brief description of the found commands that look
interesting.

How much information does apropos return?  Everything including every C
function and part of the kitchen sink.  Try to apropos the word "time"...
If there's a man page for it, its in there.  I'd guess the makewhatis
command is in most distribution's crontab file for automatic updating.

As an example, pipe the output of apropos into grep to narrow down your
search:

apropos time | grep -i ascii  <--ascii conversion with time?

or

apropos time | grep -iv tcl   <--if I'm not interested in tcl commands

Also, most commands use the standard -h or --help command option if you
want to learn more about it.  Unfortunately, some don't and swing into
full operation before you know it.  Hopefully, such behavior will be
considered as a bug by enough people to get them tamed down to a command
line friendly status.

Does this help?

--
Why drive a car when you can ride a bike?
http://attaway.net                 http://counter.li.org   user #142150

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.431 / Virus Database: 242 - Release Date: 12/17/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.431 / Virus Database: 242 - Release Date: 12/17/2002




More information about the Kclug mailing list