[UNIX] apropos - Search all the man pages for a particular string.

Sometimes, you know what you wish to accomplish, but you don't know how to do it. Sounds philosophical eh..?

Well, the great masters who designed UNIX have a solution for this too. The 'apropos' command comes in handy when you wish to search for a particular string in all the man pages. And surprisingly, its pretty fast!

This is how you do it.
$ apropos "text-to-find"

apropos command [click on the image to enlarge]

There are many options available. You can try and experiment to suit your needs. 'man apropos' can help you.

Another command which comes handy ion such situations is man -k.
Lowercase k searches only the short description and is equivalent to apropos, but uppercase K searches the entire content of the man pages.

No comments :

Post a Comment