Linux man is very powerful. This manual is divided into multiple sections. When using man, you can specify different sections for browsing. The meaning of each section is as follows:
1-commands2-SystemCalls3-library calls4-Special files5-file formats and convertions6-GamesForLinux7-macro packages and conventions8-SystemManagement commands9-others
Explanations:
1 is a common command
2 is a system call, such as open and write (through this, at least we can easily find the header file to be added to call this function)
3 is a library function, such as printf and fread
4 is a special file, that is, various device files under/dev.
5 refers to the format of the file. For example, passwd, it will explain the meaning of each field in the file.
6 is reserved for games, defined by each game
7. Some variables are attached. For example, global variables such as environ are described here.
8 is a command used for system management. These commands can only be used by root, such as ifconfig
If you want to specify a section, add a number to the end of man. For example:
MAN 1 lsman 3 printf
for commands such as open and kill, man open displays open (1), that is, starting from the front section. To view open system calls, MAN 2 open is required.
run the following command to install:
Sudo apt-Get install manpagessudo apt-Get install manpages-desudo apt-Get install manpages-de-devsudo apt-Get install manpages-Dev