LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to search man pages (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-search-man-pages-806003/)

parnal88 05-05-2010 12:41 AM

how to search man pages
 
Hi,I wanted to know how to search man-pages. For example, i wanted to check BIND FUNCTION FOR SOCKET. When i type man bind, a page about bash related information is displayed. I have realised i should be searching for bind(2). but man bind(2) gives gives syntax error. i am using Fedora 12.

EricTRA 05-05-2010 12:55 AM

Hello,

You could use the info command to show man pages (info pages) in a different way. The big advantage is that you can scroll through them and in your case search within the page with vi command. So:
Code:

find bind
and then pressing
Code:

/
will open the search function. Type your search criterium and hit enter and you'll go to the first instance info encounters.

Kind regards,

Eric

ajeetsinghraina 05-05-2010 12:59 AM

I preferabbly use this link http://www.manpagez.com/man/2/bind/

Provides you with sufficient search criteria in HTML format.
Quick Reference if you are not much confortable with the black screen for long reading.

Hope it adds to your Bookmark
:)

catkin 05-05-2010 01:38 AM

For a quick search apropos some_keyword

ArfaSmif 05-05-2010 02:26 AM

Did you think of "man man" ?

evo2 05-05-2010 02:44 AM

Quote:

Originally Posted by parnal88 (Post 3957677)
. I have realised i should be searching for bind(2). but man bind(2) gives gives syntax error.

The actual command to see that man page would be:
Code:

man 2 bind
HTH,

Evo2.

parnal88 05-05-2010 11:29 PM

thank you all, especially Evo2. Man 2 bind was what i was looking for.

mark_alfred 05-05-2010 11:43 PM

man2html allows manpages to be viewed in your internet browser at http://localhost/cgi-bin/man/man2html (at least, this is where it occurs on Debian). This could be useful in the future for searching for manpages (or for searching within manpages).


All times are GMT -5. The time now is 03:06 PM.