LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Search all man pages for a phrase (https://www.linuxquestions.org/questions/linux-software-2/search-all-man-pages-for-a-phrase-229620/)

suguru 09-12-2004 06:14 AM

Search all man pages for a phrase
 
zgrep "my long phrase" /usr/share/man/*/*
was my best shot at searching all manpages for a phrase
but it didn't work for me on live Knoppix 3.4

Can someone please edit this cli so that it will find everything
I put between quotes in all man pages?

druuna 09-12-2004 06:38 AM

This works:

man -k <word> | grep -i <more words>

Example:

man -k user | grep -i 'account'

Hope this helps.

edit
If you install new software on a regular base, you might need to run makewhatis to update the manpage database. This is used when you use mans -k flag.


All times are GMT -5. The time now is 12:32 AM.