LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 12: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, 12: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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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, 12: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, 01:38 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
For a quick search apropos some_keyword
 
Old 05-05-2010, 02:26 AM   #5
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 317

Rep: Reputation: 70
Did you think of "man man" ?
 
Old 05-05-2010, 02:44 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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-05-2010, 11:29 PM   #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-05-2010, 11:43 PM   #8
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
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-05-2010 at 11:55 PM.
 
  


Reply



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 10:37 PM
C man pages sono2 Linux - General 1 09-09-2005 10:36 AM
What do you mean by MAN pages? inspectreo Linux - Newbie 2 05-08-2005 02:12 PM
Search all man pages for a phrase suguru Linux - Software 1 09-12-2004 06:38 AM
man pages spuppett Linux - General 5 02-23-2003 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration