查找man手册相关内容,报错:
$man 2 read
No manual entry for read in section 2
解决办法:yum install man-pages
引申:man手册八章目录。
第一章:shell 命令。如:ls、vim,查询方法:>$ man ls
第二章:系统调用。如:open、close,查询方法:>$ man 2 open 或 >$ man close。因为第一章也有 open,所以 man 的参数中要加章节号;因为第一章中没有 close,所以查询 close 不需要加章节号。
第三章:库函数。如:printf、fopen,查询方法:>$ man 3 printf 或 >$ man fopen
第四章:/dev 下的文件。如:zero。
第五章:一些配置文件的格式。如:/etc/shadow,查询方法:>$ man shadow
第六章:预留给游戏的,由游戏自己定义。如:sol。
第七章:附件和变量。如 iso-8859-1。
第八章:只能由 root 执行的系统管理命令。如 mkfs。
以上内容参考:
http://www.cnblogs.com/xuxm2007/archive/2011/06/16/2082297.html
www.cnblogs.com/0xcafebabe/p/4423699.html