Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm aware about apropos/man -k, but they search in summaries, while I need to search entire man pages.

How can I do full text searches in man pages?

share|improve this question
up vote 6 down vote accepted

To search within the text of your manual pages, and not just their headings, use man -K. You can search for simple search strings (e.g. man -K "example text"), or use the --regex option to use regular expressions in your search. It will give you the first matching manual page; press q to close it and you will be presented with the option of reading the next match (Enter), skipping the next match (Ctrl-D), or quitting altogether (Ctrl-C).

share|improve this answer
Thank you! That is exactly what I need. – zuba Mar 26 '12 at 11:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.