LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-05-2010, 01:41 AM   #1
parnal88
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
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.
 
Old 05-05-2010, 01:55 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 05-05-2010, 01:59 AM   #3
ajeetsinghraina
Member
 
Registered: May 2010
Location: India
Distribution: Ubuntu 7.04/8.04/8.10/10.04, RHEL 6, OpenSUSE,Mandriva,Fedora, CentOS, XandrOS, Slackware, OpenSolar
Posts: 155

Rep: Reputation: 55
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
 
Old 05-05-2010, 02:38 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
For a quick search apropos some_keyword
 
Old 05-05-2010, 03:26 AM   #5
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Always back to Fedora
Posts: 263

Rep: Reputation: 51
Did you think of "man man" ?
 
Old 05-05-2010, 03:44 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by parnal88 View Post
. 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.
 
1 members found this post helpful.
Old 05-06-2010, 12:29 AM   #7
parnal88
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
thank you all, especially Evo2. Man 2 bind was what i was looking for.
 
Old 05-06-2010, 12:43 AM   #8
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04
Posts: 1,258

Rep: Reputation: 147Reputation: 147
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).

Last edited by mark_alfred; 05-06-2010 at 12:55 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search the 'man' pages mr tim esquire Linux - Newbie 6 07-28-2008 11:37 PM
C man pages sono2 Linux - General 1 09-09-2005 11:36 AM
What do you mean by MAN pages? inspectreo Linux - Newbie 2 05-08-2005 03:12 PM
Search all man pages for a phrase suguru Linux - Software 1 09-12-2004 07:38 AM
man pages spuppett Linux - General 5 02-23-2003 03:28 AM


All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration