Tips for using Linux MAN commands

Source: Internet
Author: User

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.

  1. The Ubuntu IT industry is still vulnerable to piracy
  2. Ubuntu openSUSE features and package Building Services
  3. How to boot the Ubuntu file from the hard disk to DOS
  4. Are you ready to enter Enterprise Server Ubuntu?
  5. The core image file of the Ubuntu installation system points to the downloaded file.

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.