This question already has an answer here:

I would like to know if there are easier ways to navigate to specific sections of manual pages such as Examples or Options

I currently resort to piping man to regex find and retrieve statements.

For example to find the entry for the -f option in the grep manual I use this statement:

man grep | grep -A 2 -e '-f'

Is there a better way to use man? I've been able to find scant info on the -S option but perhaps I'm going down the wrong rabbit hole.

marked as duplicate by Kusalananda, sebasth, Stephen Rauch, G-Man, muru Oct 13 '17 at 6:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I usually use
/<search pattern>
after opening a specific man page

As MiniMax mentioned the pager is less by default.

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