linux man command is a help command under Linux. Through the man command, you can view command help, configuration file help, programming help and other information in Linux; the command uses syntax such as "man sleep", which means that man is in accordance with The manual is searched in order of chapter number, and only manuals for the sleep command will be displayed.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What does the linux man command do?
man command in linux
The man command is a help command under Linux. Through the man command, you can view command help, configuration file help, programming help and other information in Linux.
Syntax
> man(选项)(参数)
Options
-a: Search in all man help manuals;
-f: Equivalent to the whatis command, displaying short description information for a given keyword;
-P: Use the paging program when specifying content;
-M: Specify the man manual search path.
Parameters
Number: Specify which man manual to search for help from;
Keyword: Specify the keyword to search for help.
Numbers represent content
1: Commands or executable files that users can operate in the shell environment;
2: Functions and functions that can be called by the system kernel Tools, etc.
3: Some commonly used functions and libraries, most of which are C function libraries (libc)
4: Device file description, usually in /dev Files under
5: Configuration files or certain file formats
6: Games
7: Conventions and protocols, etc., such as Linux file system, network protocol , ASCII code, etc.
8: Management commands available to system administrators
9: Kernel-related files
Examples
We enter man ls, it will display LS (1) in the upper left corner. Here, LS represents the manual name, and (1) represents that the manual is located in the first chapter. Similarly, if we enter man ifconfig, it will display it in the uppermost corner. IFCONFIG(8) is displayed in the upper left corner. You can also enter the command like this: man [chapter number] manual name.
man is searched in the order of chapter numbers in the manual. For example,
> man sleep
will only display the manual for the sleep command. If you want to view the library function sleep, you must enter:
> man 3 sleep
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What does the linux man command do?. For more information, please follow other related articles on the PHP Chinese website!