DaemonForums  

Go Back   DaemonForums > Miscellaneous > Off-Topic

Off-Topic Everything else.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd May 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default Man Page Numbers

Hello,

I know this is probably a very basic question, but:

What do the numbers associated with the man pages stand for? For example - cat(1) or random(4).
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
  #2   (View Single Post)  
Old 22nd May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,062
Thanked 198 Times in 156 Posts
Default

from mdoc(7):

Code:
             Under FreeBSD 6.2, the following sections are defined:

                   1        FreeBSD General Commands Manual
                   2        FreeBSD System Calls Manual
                   3        FreeBSD Library Functions Manual
                   4        FreeBSD Kernel Interfaces Manual
                   5        FreeBSD File Formats Manual
                   6        FreeBSD Games Manual
                   7        FreeBSD Miscellaneous Information Manual
                   8        FreeBSD System Manager's Manual
                   9        FreeBSD Kernel Developer's Manual
Sometimes a manpage occurs in two (or more?) sections, for example chmod(1) deals with the chmod command, while chmod(2) deals with the chmod() system call.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 22nd May 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default

Hello,

Thanks! Is that about standard for all *nix systems?
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
  #4   (View Single Post)  
Old 22nd May 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default

*sigh* I wish UNIX were as standardized as it was meant to be.

For Solaris systems, refer to the following page:
http://developers.sun.com/solaris/ar...man_pages.html
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #5   (View Single Post)  
Old 22nd May 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Thanked 8 Times in 8 Posts
Default

Hello,

Quote:
Originally Posted by cajunman4life View Post
*sigh* I wish UNIX were as standardized as it was meant to be.

For Solaris systems, refer to the following page:
http://developers.sun.com/solaris/ar...man_pages.html

I was able, using Carpetsmoker's post to find out the numbering system for my two *nix OS's (NetBSD and Slackware). NetBSD's numbering system is very similar to FreeBSD (i.e., replace FreeBSD with NetBSD).
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote
  #6   (View Single Post)  
Old 22nd May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

The layout is mostly the same but slightly different between vendors at times... but they generally follow the style that carpetsmoker qouted.

At least when they are so nice to _not_ intermix letters and number-letter combo's such as 1M, N, or X.


Most times you shouldn't need to worry about what section a command is in to find it. Unless there is a program with the same name as a syscall or file format which you need instead, that is...

Example:

man printf -> man page for /usr/bin/printf
man 1 printf -> same thing
man 3 printf -> the standard C function printf() and related routines
man 9 printf -> the printf() function and related routines used within the FreeBSD kernel.

printf() in unix kernels has been around since at least AT&T UNIX Version 6, the standard library function since before there was a standard library (oldest reference I know is a C tutorial from 1974), and the printf command since 4.3BSD-Reno according to it's manual page.

So most of the worst ambiguities have been with us since the cows came home, went out again, and fell over dead. The ones most people care about however are minor.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
4.5_packages web page - not working? jsmith6134 OpenBSD Packages and Ports 2 6th May 2009 02:37 PM
page fault error 12 Mr-Biscuit FreeBSD General 2 23rd December 2008 11:58 AM
First time page / Start page bichumo General software and network 7 27th October 2008 10:40 PM
Fatal trap 12: page fault while in kernel mode sixshot FreeBSD General 11 18th July 2008 12:53 AM


All times are GMT. The time now is 04:13 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick