man (1) - 格式化并显示在线帮助手册页
常用的命令选项
-f, --whatis 相当于 whatis
-k, --apropos 相当于 apropos
-w, --where, --path, --location 打印手册页的物理位置
-W, --where-cat, --location-cat 打印 cat 文件的物理位置
-M, --manpath=PATH 将手册页的搜索路径设置为 PATH
手册代号分类代表的含义
1 可执行程序或 shell 命令
2 系统调用(内核提供的函数)
3 库调用(程序库中的函数)
4 特殊文件(通常在 /dev 中)
5 文件格式和约定,例如 /etc/passwd
6 游戏
7 杂项(包括宏包和约定), e.g. man(7), groff(7)
8 系统管理命令(通常仅适用于 root)
9 内核例程 [非标准]
有关的其他命令
apropos (1) - 在 whatis 数据库中查找字符串
whatis (1) - 在 whatis 数据库里查找完整的单词
mandb (8) - 创建或更新手册页索引缓存
makewhatis (8) - 创建whatis数据库(CentOS6)
info (1) - 阅读 info 文档
info (5) - 易读的在线文档
常用的操作指令
j 下一行
k 上一行
f 下一页
b 上一页
g 首页
G 尾页
/ 向下搜索
? 向上搜索
n 下一个匹配项
N 上一个匹配项
示例
[root@OS7 ~]# man ls
[root@OS7 ~]# man -f ls
[root@OS7 ~]# man -k ls
[root@OS7 ~]# man -w ls
[root@OS7 ~]# man -M /usr/share/man/zh_CN/ -f man
man 帮助手册
最新推荐文章于 2024-06-23 11:27:59 发布