How to use the Linux Man command

Source: Internet
Author: User

Linux provides a rich help manual that you do not have to look for when you need to see the parameters of a command, as long as you have a man.


The Linux Man Handbook has several chapters:

Generation No. Representative contents
1 Instructions or executables that the consumer can manipulate in the shell
2 The system core can call functions and tools, etc.
3 Some common functions and function libraries (library), most of which are C's function libraries (LIBC)
4 Description of the device file, usually in/dev file
5 The format of a profile or some file
6 Game (games)
7 Conventions and agreements, such as Linux file systems, network protocols, ASCII code, and so forth
8 Management instructions available to the system administrator
9 Documents related to Kernel

Example: Man 5 data

1 executable programs or shell COMMANDS2 System calls (functions provided by the kernel) 3 Library calls (functions within Program libraries) 4 special files (usually found In/dev) 5 File formats and conventions Eg/etc/passwd6 GAMES7 Miscellaneo US (including macro packages and conventions), e.g. man (7), Groff (7) 8 System Administration commands (usually only for Roo T) 9 Kernel routines [Non Standard]

1, standard commands (command)
2. System calls (Systems call)
3. Library functions (Libraries function)
4, special devices (equipment description)
5. File formats (document format)
6. Games and toys (game and entertainment)
7. Miscellaneous (Miscellaneous)
8, Administrative Commands (Administrator command)
9 Other (Linux-specific) documents used to store kernel routines.

N new documents, you may want to move to a more appropriate area.
o old documents may be retained for a period of time.
L Local documentation, related to this particular system.

For example: We enter the man LS, it will show "LS (1)" in the upper left corner, where "ls" denotes the manual name, and "(1)" means that the manual is in the first section, similarly, we enter "man ifconfig" it will show "ifconfig (8)" in the upper left corner. You can also enter the command: "Man [chapter number] Manual name".

The man is searched in the order of the chapter number of the manual, for example:
Mans sleep
Only the Manual of the Sleep command is displayed, and if you want to see the library function sleep, enter:
Mans 3 Sleep

How to use the Linux Man command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.