Search code examples
databasesearchsearch-enginemanpage

Is there a command to search for a string within all man pages installed in the man-db


I know that if I can't remember a command I can just look it up on Google. But this should be possible from the shell itself. If I could output all the man-pages, I could run a grep on them and find what I was looking for.

Is there a simple command line man-search-engine out there that indexes all the words in all the man pages and lets you search through the descriptions? If not, how hard would it be to develop one?


Solution

  • I think you might be looking for the -k option to man; see also apropos.