List commands with a short summary

find `echo "${PATH}" | tr ':' ' '` -type f | while read COMMAND; do man -f "${COMMAND##*/}"; done
Obviously, you can replace 'man' command with any command in this command line to do useful things. I just want to mention that there is a way to list all the commands which you can execute directly without giving fullpath. Normally all important commands will be placed in your PATH directories. This commandline uses that variable to get commands. Works in Ubuntu, will work in all 'manpage' configured *nix systems.
Sample Output
$ find `echo "${PATH}" | tr ':' ' '` -type f -a -name '*ctl*' | while read COMMAND; do man -f "${COMMAND##*/}"; done
cupsctl (8)          - configure cupsd.conf options
pactl (1)            - Control a running PulseAudio sound server
esdctl (1)           - The Enlightened Sound Daemon
sysctl (8)           - configure kernel parameters at runtime
alsactl (1)          - advanced controls for ALSA soundcard driver
pccardctl (8)        - PCMCIA card control utility
initctl (8)          - init daemon control utility

By: mohan43u
2009-06-13 19:56:24

What Others Think

that's nice, there is also this command that does something similar: whatis <some-command> eg. # whatis man man (1) - format and display the on-line manual pages man (1p) - display system documentation man (7) - macros to format man pages man-pages (7) - conventions for writing Linux man pages man.conf [man] (5) - configuration data for man
JesusSuperstar · 680 weeks and 4 days ago
It works well also on my FreeBSD box.
brunobiondo · 185 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: