Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the number in parentheses shown after Unix command names in manpages mean?

For example: man(1), find(3), updatedb(2)?

What do the numbers in parentheses (Brit. "brackets") mean?

like image 625
duckyflip Avatar asked Sep 15 '08 13:09

duckyflip


People also ask

What do parentheses mean in Linux?

Parentheses denote a subshell in bash. In your command, the $() is command substitution and if it is like () is a subshell. Both of them run commands, the difference is what happens to the output.

What are the numbers on Linux man pages?

The number corresponds to what section of the manual that page is from; 1 is user commands, while 8 is sysadmin stuff.

What does parentheses mean in bash?

Parentheses ( () ) are used to create a subshell. For example: $ pwd /home/user $ (cd /tmp; pwd) /tmp $ pwd /home/user. As you can see, the subshell allowed you to perform operations without affecting the environment of the current shell. (a) Braces ( {} ) are used to unambiguously identify variables.

What do brackets mean in man pages?

mean that their content is optional and can either be added to the command or not. Curly brackets containing pipe-separated items { ... | ... } mean that you must specify one of those items.


1 Answers

It's the section that the man page for the command is assigned to.

These are split as

  1. General commands
  2. System calls
  3. C library functions
  4. Special files (usually devices, those found in /dev) and drivers
  5. File formats and conventions
  6. Games and screensavers
  7. Miscellanea
  8. System administration commands and daemons

Original descriptions of each section can be seen in the Unix Programmer's Manual (page ii).

In order to access a man page given as "foo(5)", run:

man 5 foo 
like image 115
Ian G Avatar answered Oct 01 '22 09:10

Ian G