manpage

Why do programs in Unix-like environments have numbers after their name? [duplicate]

試著忘記壹切 提交于 2019-11-26 22:48:32
This question already has an answer here: What does the number in parentheses shown after Unix command names in manpages mean? 6 answers For example, when I run man ioctl the page says IOCTL(2) at the top. What does that mean? Is there an IOCTL(1) ? And how does one navigate between these? Paul Tomblin It's the man page section. From memory, section 1 is user programs, 2 is system calls, and 3 is standard C library calls, and 5 is file formats. Wikipedia has the full explanation here . eduffy That's the man page section number. For example man printf (should) Give you section 1, printf the

Linux/Unix man page syntax conventions

[亡魂溺海] 提交于 2019-11-26 15:38:29
问题 In man pages I come across various syntaxes to write Linux/Unix commands, which include square brackets, angular brackets, hyphens ( - ) and double hyphens ( -- ) in various combinations. Does anyone know the meaning of these syntax conventions? [ ] < > [< >] [--] - -- [< >...] 回答1: Square Brackets [ ] The square brackets ( [ ] ) indicate that the enclosed element (parameter, value, or information) is optional. You can choose one or more items or no items. Do not type the square brackets

Why do programs in Unix-like environments have numbers after their name? [duplicate]

可紊 提交于 2019-11-26 12:19:30
问题 This question already has an answer here: What does the number in parentheses shown after Unix command names in manpages mean? 7 answers For example, when I run man ioctl the page says IOCTL(2) at the top. What does that mean? Is there an IOCTL(1) ? And how does one navigate between these? 回答1: It's the man page section. From memory, section 1 is user programs, 2 is system calls, and 3 is standard C library calls, and 5 is file formats. Wikipedia has the full explanation here. 回答2: That's the

What&#39;s the difference between “C system calls” and “C library routines”?

纵然是瞬间 提交于 2019-11-26 12:09:18
问题 There are multiple sections in the manpages. Two of them are: 2 Unix and C system calls 3 C Library routines for C programs For example there is getmntinfo(3) and getfsstat(2), both look like they do the same thing. When should one use which and what is the difference? 回答1: System calls are operating system functions, like on UNIX, the malloc() function is built on top of the sbrk() system call (for resizing process memory space). Libraries are just application code that's not part of the

Where are the man pages for C++? [closed]

ぃ、小莉子 提交于 2019-11-26 12:03:33
问题 Does documentation for C++ exist in Linux? I want something like the man pages of C. For example, docs for string, stl, iostream, ifstream, etc.? 回答1: If you use the "normal" libstdc++ shipped with g++, its documentation is available online here. Most Linux distributions make it also available offline as a particular package; for Debian-derived distros, for example, it's libstdc++-6-<version>-doc (e.g. on my Ubuntu machine I have libstdc++-6-4.4-doc installed). In general the documentation

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

你。 提交于 2019-11-26 11:58:07
For example: man(1), find(3), updatedb(2)? What do the numbers in parentheses (Brit. "brackets") mean? Ian G It's the section that the man page for the command is assigned to. These are split as General commands System calls C library functions Special files (usually devices, those found in /dev) and drivers File formats and conventions Games and screensavers Miscellanea System administration commands and daemons Original descriptions of each section can be seen in the Unix Programmer's Manual (page ii). The section the command is documented in the manual. The list of sections is documented on