7

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?

1 Answer 1

9

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).

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .