linux man 指定section查看帮助说明

man 是linux下非常有用的命令,方便我们查看命令及系统调用等帮助文档。有时会存在同名的情况,需要指定帮助资料的section,使用方法:

man [section] [command name]

具体的section如下:

section number description
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]

如“printf”存在命令和C++函数,查看printf命令的帮助说明:

man 1 printf

查看C++ printf函数的使用帮助:

man 3 printf
posted @ 2022-10-22 21:30  油炸粑  阅读(90)  评论(0)    收藏  举报