Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use the MAN command in Linux

Shulou Source: shulou.com Published: 2022-06-01 06:34:55 10月02日 Update

This article mainly shows you "how to use the MAN command in Linux". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn how to use the MAN command in Linux.

Man in Linux man is the abbreviation for manual and is used to view the various reference manuals that come with the system, but the man page is divided into several sections, as follows:

1 Executable programs or shell commands

2 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/passwd

6 Games

7 Miscellaneous (including macro packages and conventions), e.g. Man (7), groff (7)

8 System administration commands (usually only for root)

9 Kernel routines [Non standard]

Enter the man+ number + command / function in shell to find out the relevant commands and functions. If no numbers are added, the Linux man command defaults to looking for relevant commands and functions from manuals with smaller numbers.

For example, I was looking for the rand () function in the c standard library. Using man rand directly, I get a manual of the rand command, which is directly used to generate a random number, which is found in manual section 1. If you use man 3 rand, you can get the usage of rand () in the library function you want.

The above is all the contents of the article "how to use MAN commands in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Commands functions manuals content numbers articles learning help individual departments that is easy to understand more organization standards knowledge systems tapes abbreviations industries information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB macOS MySQL Shulou Technology NVidia