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 03-24-2006, 08:42 PM   #1
pranavojha
Member
 
Registered: Feb 2006
Location: Bangalore, India
Distribution: Fedora Core 3
Posts: 68

Rep: Reputation: 15
man documents, how is it viewed.


hi i have been trying to find the man document for the bind function (for C/C++, socket programming). however, when i type man bind i get the man docs for a bind command in bash shell. what options shud i specify along with man so that the man docs display results for C/C++ languages.

Last edited by pranavojha; 03-24-2006 at 08:45 PM.
 
Old 03-24-2006, 08:53 PM   #2
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Click.

Or 'man 2 bind' might work

HTH,

-jk

(Thanks Peter for the correction - my mind isn't working properly so late at night )

Last edited by J_K9; 03-24-2006 at 09:32 PM.
 
Old 03-24-2006, 08:55 PM   #3
peter72
Member
 
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Blog Entries: 1

Rep: Reputation: 30
Quick way is to do a man -k bind and see what section bind is in, I don't know and I have tmdns. The section should be the middle column. Then just type "man 8 bind" if 8 is the section bind is in.

Here is the section breakdown:

Section # Topic
1 Commands available to users
2 Unix and C system calls
3 C library routines for C programs
4 Special file names
5 File formats and conventions for files used by Unix
6 Games
7 Word processing packages
8 System administration commands and procedures

Last edited by peter72; 03-24-2006 at 08:57 PM.
 
Old 03-25-2006, 08:46 AM   #4
pranavojha
Member
 
Registered: Feb 2006
Location: Bangalore, India
Distribution: Fedora Core 3
Posts: 68

Original Poster
Rep: Reputation: 15
it works...

Quote:
Originally Posted by J_K9
Click.

Or 'man 2 bind' might work

HTH,

-jk

(Thanks Peter for the correction - my mind isn't working properly so late at night )
hey thanx man 2 bind works great but why use 2 in the argument?
how did u come to know u hav to use 2 n not 3 or 4 or...?
 
Old 03-25-2006, 09:46 AM   #5
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Because, as Peter said, this is what the number means:
Quote:
Section # Topic
1 Commands available to users
2 Unix and C system calls
3 C library routines for C programs
4 Special file names
5 File formats and conventions for files used by Unix
6 Games
7 Word processing packages
8 System administration commands and procedures
You want a C system call, and that's number 2, so that's the man number we need to search for. If there was more than one instance of a command (like bind), then 'man -k command' will display the different man pages command is mentioned in. Quite useful

Cheers,

-jk
 
Old 03-26-2006, 10:31 AM   #6
pranavojha
Member
 
Registered: Feb 2006
Location: Bangalore, India
Distribution: Fedora Core 3
Posts: 68

Original Poster
Rep: Reputation: 15
thanx

Quote:
Originally Posted by J_K9
Because, as Peter said, this is what the number means:

You want a C system call, and that's number 2, so that's the man number we need to search for. If there was more than one instance of a command (like bind), then 'man -k command' will display the different man pages command is mentioned in. Quite useful

Cheers,

-jk
that's it... that solves my problem...
thanx guys. been fun...

Last edited by pranavojha; 03-26-2006 at 10:49 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
Evolution tasks can't be viewed in outlook neranjana Linux - Software 0 01-05-2006 06:01 AM
/windows (hda1) only able to be viewed by root. Gold Yo Slackware 5 07-25-2005 03:57 PM
Error viewed in srvrep BongoKarl Linux - Networking 0 07-12-2005 09:30 AM
How can GPRS Connection Status can be viewed. HELP PLEASE ! ! ! bedi-beparwah SUSE / openSUSE 1 03-16-2005 12:55 AM
Threads showing up as not viewed amp2000 LQ Suggestions & Feedback 1 12-17-2002 12:09 PM


All times are GMT -5. The time now is 12:39 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