In Linux shell, I often use the Linux man command to view how to use unfamiliar commands. Some library functions in c and c ++ are found when programming in shell. I ran to the Internet to search. Accidentally, I found that Linux man can also be used to query some function definitions and usage methods in the system library file.
Man in Linux man is the abbreviation of manual. It is used to view various reference manuals in the system. However, the manual pages are divided into several parts, as shown below:
1 Executable programs or shell commands
2 System CILS (functions provided by the kernel)
3 Library CILS (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 man + number + command/function in shell to find related commands and functions. If no number is added, the Linux man command searches for related commands and functions from the manual with a small number by default.
For example, if you want to find the rand () function in the c standard library, you can use man rand to obtain a manual of the rand command, which is used to generate a random number directly, this content is included in section 1 of the manual. If man 3 rand is used, you can get the rand () usage in the library function you want.
- The Ubuntu IT industry is still vulnerable to piracy
- Ubuntu openSUSE features and package Building Services
- How to boot the Ubuntu file from the hard disk to DOS
- Are you ready to enter Enterprise Server Ubuntu?
- The core image file of the Ubuntu installation system points to the downloaded file.