search the entire man pages


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users search the entire man pages
# 1  
Old 06-17-2011
search the entire man pages

Could someone please tell me how to search the entire man pages? I know man -k whatever searched the description but I wanna search the entire man page.
# 2  
Old 06-20-2011
man your_entry_name will search the entire man pages but it will stop when the first matching entry is found. So if multiple sections have man pages for the searched entry man will stop at the first one found...but man with the -k option will search all sections and print them out. So as an example try man intro and man -k intro and notice the difference.
# 3  
Old 06-21-2011
Quote:
Originally Posted by shamrock
man your_entry_name will search the entire man pages but it will stop when the first matching entry is found.
Wrong. It searches for page names only.

Quote:
Originally Posted by shamrock
So if multiple sections have man pages for the searched entry man will stop at the first one found...but man with the -k option will search all sections and print them out.
Sort of. It does look through every section but only the description section in the man page.

Quote:
Originally Posted by shamrock
So as an example try man intro and man -k intro and notice the difference.
I know the difference.

Quote:
man -k printf
Search the short descriptions and manual page names for the keyword printf as regular expression. Print out any matches. Equivalent to apropos -r printf.
Quote:
man [[section] page ...]
# 4  
Old 06-24-2011
If you have GNU's man then the -K option searches for the specified string, and -k is equivalent to apropos. Otherwise, I usually just grep -H the man path.
# 5  
Old 06-24-2011
Time for COKEDUDE to reveal what Operating System and version he is running.
This is a remarkably complex subject. The "man" pages are designed to be searched with the "man" command.

Personally I look for an internet HTML version of the "man" pages and use Google site search.
Within a normal unix system you would need to explode every "man" page into text format then search the text versions. This assumes that you have enough disc space.
# 6  
Old 06-24-2011
Methyl is on the right track. This is how it is normally done. See Ubuntu Manpages and Fedora Manpages for examples. Both use custom Google search on manpages that were converted to HTML format.
# 7  
Old 08-06-2011
Quote:
Originally Posted by methyl
Time for COKEDUDE to reveal what Operating System and version he is running.
This is a remarkably complex subject. The "man" pages are designed to be searched with the "man" command.

Personally I look for an internet HTML version of the "man" pages and use Google site search.
Within a normal unix system you would need to explode every "man" page into text format then search the text versions. This assumes that you have enough disc space.
I bounce back and forth between Linux Mint (basically Ubuntu) and Fedora. I am using Fedora right now but prefer Mint.

Quote:
Originally Posted by fpmurphy
Methyl is on the right track. This is how it is normally done. See Ubuntu Manpages and Fedora Manpages for examples. Both use custom Google search on manpages that were converted to HTML format.
Thx for the Fedora one Smilie.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Man pages for Pthreads

"how to see the man pages related to pthreads". while executing the command man pthread_t . im getting the following error!!!!! No manual entry for pthread. (3 Replies)
Discussion started by: Muthukumar U
3 Replies

2. HP-UX

Looking for some man pages.

Can anyone supply me with the man pages for: omnidatalist omnibarlist omnisap.exe I prefer the source man pages in nroff format. A clue about the software bundles which supply these man pages is fine as well. OS: HP-UX TIA (11 Replies)
Discussion started by: sb008
11 Replies

3. Solaris

MAN PAGES

Hi everyone, I have a small query, in solaris the man pages get displayed on half of the terminal , can i get a full terminal or full screen display ?:) (2 Replies)
Discussion started by: M.Choudhury
2 Replies

4. SCO

man pages are gone. Anyone know how to resore it?

Not sure what I did but I can use man pages anymore here is what i get pictureb # man ls man: ls not found Any info will be appreciated. SCO 6 Openserver (2 Replies)
Discussion started by: miles556
2 Replies

5. UNIX for Dummies Questions & Answers

man pages

When reading man pages, I notice that sometimes commands are follwed by a number enclosed in parenthesis. such as: mkdir calls the mkdir(2) system call. What exactly does this mean? (4 Replies)
Discussion started by: dangral
4 Replies

6. UNIX for Dummies Questions & Answers

man pages

Hi folks, I want to know all the commands for which man pages are available. How do i get it? Cheers, Nisha (4 Replies)
Discussion started by: Nisha
4 Replies

7. UNIX for Dummies Questions & Answers

man pages

Hi, I've written now a man pages, but I don't knwo how to get 'man' to view them. Where have I to put this files, which directories are allowed?? THX Bensky (3 Replies)
Discussion started by: bensky
3 Replies

8. UNIX for Dummies Questions & Answers

man pages creating

Hi, I wnat to create my own man pages, but I can't find a good description of the troff language. Knows somebaody a good docu including examples?? Thx Bensky (2 Replies)
Discussion started by: bensky
2 Replies

9. UNIX for Dummies Questions & Answers

Man pages

Hello , I just installed openssh in my system . I actually tried to man sshd but it says no entry , though there is a man directory in the installation which have the man pages for sshd . Can anyone tell me how should i install these man pages . DP (2 Replies)
Discussion started by: DPAI
2 Replies
Login or Register to Ask a Question