help——查看内部shell命令帮助信息
man——显示在线手册页
-a:显示所有
-d:用于检查或检查新加入的文件是否有错,不会列出文件内容
-f:只显示命令功能不显示详细说明文件,和whatis功能相同
-w:不现实手册页,只显示将被格式化和显示文件的所在位置
显示ls命令功能
[root@rhel7 ~]# man -f ls
ls (1) - list directory contents
ls (1p) - list directory contents
[root@rhel7 ~]# whatis ls
ls (1) - list directory contents
ls (1p) - list directory contents
显示passwd命令和/etc/passwd文件手册页所在位置
[root@rhel7 ~]# man -w passwd
/usr/share/man/man1/passwd.1.gz
[root@rhel7 ~]# man -f passwd
passwd (1) - update user's authentication tokens
sslpasswd (1ssl) - compute password hashes
passwd (5) - password file
[root@rhel7 ~]# man -w 5 passwd
/usr/share/man/man5/passwd.5.gz
manpath——查看和设置man手册页的查询路径
显示man手册页查询路径
[root@rhel7 ~]# manpath
/usr/local/share/man:/usr/share/man/overrides:/usr/share/man
info——阅读info格式文件
info [OPTION]... [MENU-ITEM...]
-w:显示info文档的物理位置
[root@rhel7 ~]# info -w ls
/usr/share/info/coreutils.info.gz
pinfo——基于lynx类型info浏览器
pinfo [options] [infopage]
本文来源:https://www.2haoxitong.net/k/doc/f06e94c3d0f34693daef5ef7ba0d4a7302766cb8.html
文档为doc格式