what does crypt(3) and whatnot mean

4

1

Possible Duplicate:
What do the parentheses and number after a Linux command or C function mean?

In Linux Manpages (http://linux.die.net/man/3/crypt) I often see sth like this: crypt(3), bla(4), bla(5)

What is the full meaning of these expressions?

Hans

Posted 2009-12-03T20:47:04.867

Reputation:

Question was closed 2011-09-03T15:51:16.493

Answers

13

The numbers signify what section the page belongs to, there are 8:

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

for example, if you wanted to know how to use the crontab command, you could type man crontab. If you wanted to know the layout of the crontab file, you'd use man 5 crontab.

Not all items have all 8 pages. If the specific item is not a command, it will automatically direct you to the appropriate page as there was to entry in section 1 for the command. An example of this is man strcpy which will bring you to the C library function strcpy.

John T

Posted 2009-12-03T20:47:04.867

Reputation: 149 037

I didn't know there were 8 sections. If I do a man crypt -a, I get a crypt(3) and a crypt(n). Where's crypt(n) fit into those 8? – mrduclaw – 2009-12-03T20:53:27.693

4(n) is an unofficial section of the manpages added by Tcl. There is also (l) if you install SQL I believe. – John T – 2009-12-03T20:59:00.113

1

You can do a "man man" to have the manual of the manual. I'll show you the meaning of these sections.

some

Posted 2009-12-03T20:47:04.867

Reputation: 11

0

The reason for the sections john describes is that the same word eg 'free' might be a user command or a C library function.

so "man free" or "man 1 free" would give you the page from section 1, if no number is given it gives you the lowest.

while "man 3 free" would give you the C library function to free memory.

Martin Beckett

Posted 2009-12-03T20:47:04.867

Reputation: 6 073