Find the answer to your Linux question:
Results 1 to 8 of 8
At looking at the man pages (online and locally) for several commands I started noticing that there is always some sort of specification in the format <cmd(#)>. For example: chmod(1) ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    15

    What do the numbers mean?

    At looking at the man pages (online and locally) for several commands I started noticing that there is always some sort of specification in the format <cmd(#)>.
    For example:

    chmod(1)
    chmod(2)
    cp(1)
    symlink(7)
    stat(2)
    stat(5)

    (I got some of those from here but I also see them in the SEE ALSO section of my man pages).

    What do the numbers mean? Why do some commands have different numerical options (is that the correct term for this?)?

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Here's some information about this issue:

    Manual page (Unix) - Wikipedia, the free encyclopedia

    Regards

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    This is from manual of man command.

    The table below shows the section numbers of the manual followed by the types of pages they contain.

    1 Executable programs or shell commands
    2 System calls (functions provided by the kernel)
    3 Library calls (functions within program libraries)
    4 Special files (usually found in /dev)
    5 File formats and conventions eg /etc/passwd
    6 Games
    7 Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)
    8 System administration commands (usually only for root)
    9 Kernel routines [Non standard]
    Code:
    man <section number> <command>
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Jul 2007
    Posts
    15
    Awsome. I can now start reading more into this.
    Thanks.

  5. #5
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567

    Talking

    Code:
    man [section number] <command>

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by CodeRoot View Post
    Code:
    man [section number] <command>
    I am not getting the meaning of your post? Is there anything wrong?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567

    Smile

    Quote Originally Posted by devils_casper View Post
    I am not getting the meaning of your post? Is there anything wrong?
    man [section number] <command>

    [arg] => optional argument
    <arg> => required argument

    (standard command syntax)


    => 'razz'

    No -- nothing is really wrong -- just razzing you...

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Okk ! I get it now.
    I didn't even imagine that someone will look into code so keenly.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...