Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the man command in Linux

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to use the man command in Linux. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

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 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 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 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.

This is how the man command in Linux shared by Xiaobian is used. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report