search all man pages for a given command

apropos command

The apropos command searches a set of database files containing short descriptions of system commands for keywords and displays the result on the standard output.
Syntax:
apropos oneword
apropos “string or phrase”

Search command / functions related to compare operation:
$ apropos compare

Search command to remove a file:
$ apropos “remove file”

Output:
rm (1) – remove files or directorie
man -K

-K option use to search for the specified string in all man pages.
Syntax:
man -K oneword
man -K “string or phrase”

Search all man pages for fopen word:
$ man -K “fopen”

Output:
/usr/share/man/en/man3/fclose.3.gz? [ynq]

Type y to open/display man page, n to continue search, q to Quit search.

This is probably very slow! It helps to specify a section (1-7).
$ man 3 -K “open”

Above commands also works with UNIX and *BSD oses.

(as stolen from: http://www.cyberciti.biz/faq/howto-search-all-the-linux-unix-man-pages/)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: