Commands you might have missed: apropos

Posted by djzort on Wed 3 Sep 2008 at 09:52

apropos is a standard unix command which is very frequently forgotten. That is a shame as this tool it is to man pages, what google is to the world wide web!

Basically apropos searches your MAN path for man pages relating to the search string. It searches both the page name and the description!

dean@optimus:~$ apropos ethernet
brctl (8)            - ethernet bridge administration
ethers (5)           - Ethernet address to IP number database
ethtool (8)          - Display or change ethernet card settings
sk98lin (4)          - Marvell/SysKonnect Gigabit Ethernet driver v6.21
dean@optimus:~$

apropos can also search using wild cards (-w) or regexes (-r) and a variety of other options as listed in the apropos man page.

dean@optimus:~$ apropos -w ap*s
appres (1)           - list X application resource database
apropos (1)          - search the manual page names and descriptions
apt-extracttemplates (1) - Utility to extract DebConf config and templates from Debian packages
apt-sortpkgs (1)     - Utility to sort package index files
apt_preferences (5)  - Preference control file for APT
AptPkg::PkgRecords (3pm) - APT package description class
desktop-file-install (8) - install a desktop file to the applications directory
DPMSSetTimeouts (3)  - permits applications to set the timeout values used by the X server for DPMS timings
gnome-session-remove (1) - Remove or list applications in the current GNOME session
kdeinit_wrapper (1)  - start applications via kdeinit
kshell (1)           - start applications via kdeinit
kwrapper (1)         - start applications via kdeinit
make_driver_db_lpr (1) - create a printer database from aps filter database and ifhp filter database.
perl-tk (3pm)        - Writing Tk applications in Perl 5
Tk::UserGuide (3pm)  - Writing Tk applications in Perl 5
xlsclients (1)       - list client applications running on a display

You will find apropos on just about every unix & linux system you will come across.

I don't know what it stands for or if its even an english word, a history of this command would be interesting!

Share/Save/Bookmark


Posted by Anonymous (130.79.xx.xx) on Wed 3 Sep 2008 at 10:29
For the history, "À propos" means "about" in french.

[ Parent | Reply to this comment ]

Posted by Anonymous (81.249.xx.xx) on Wed 3 Sep 2008 at 10:30
"a propos" in french means "about" ;)

[ Parent | Reply to this comment ]

Posted by Anonymous (220.233.xx.xx) on Wed 3 Sep 2008 at 14:07
man -k
is quicker to type :)

[ Parent | Reply to this comment ]

Posted by stevemayes (131.111.xx.xx) on Thu 4 Sep 2008 at 08:42
[ Send Message ]
Purely as a point of pedantry... :)

'A propos' is indeed french however the word apropos is, like so many others, one we (speakers of English) have appropriated and is, consequently, an English word. It means; regarding, about, in relation to, fitting, to the purpose.

[ Parent | Reply to this comment ]

Posted by Anonymous (64.129.xx.xx) on Thu 4 Sep 2008 at 22:52
You probably wanted:

$ apropos -w 'ap*s'

Without the quotes, it only works if no filenames in the current directory happen to match ap*s; if they do, you end up searching on them instead. Even when there are no matching filenames, if you're in bash, you're relying on nullglob being unset.

[ Parent | Reply to this comment ]

Posted by djzort (203.10.xx.xx) on Thu 4 Sep 2008 at 23:14
[ Send Message ]

Good point, thats always a gotcha though - regardless of the command being used.

http://www.fragfest.com.au

[ Parent | Reply to this comment ]

Posted by benjamin (193.95.xx.xx) on Tue 23 Sep 2008 at 00:12
[ Send Message | View Weblogs ]
apropos is an appropriate word for By the way :)

http://www.dictometer.com/apropos
__________________________________________________
I'm not a comlpete idoit - some prats are missnig.

[ Parent | Reply to this comment ]

Posted by Anonymous (122.116.xx.xx) on Sun 28 Sep 2008 at 17:18
Ha, I really forget this command since I use 'man -k keyword' and 'man -f keyword' instead. *^_^* thanks for sharing~

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search