Linux 帮助man的使用

1、安装linux glibc手册

apt-get install manpages-dev

apt-get install manpages-posix-dev

2、man page 共分为以下几个“section”

1 User commands
2 Programming interfaces for kernel system calls
3 Programming interfaces to the C library
4 Special files such as device nodes and drivers
5 File formats
6 Games and amusements such as screensavers
7 Miscellaneous
8 System administration commands

3、 whatis <cmd> 显示命令的man page信息

例如:#whatis lsls (1)               - list directory contents

4、查看帮助的方法

例如:man 3 printf ; 查看c语言函数printf的帮助

man 1 printf; 查看shell命令printf的帮助

相关推荐