Help command
- man
- info
- help
- --help
man
Original English meaning: format and display the on-line manual pages
Function: display online help manual
Syntax: man option [-fk] command
man -f 查看命令拥有哪个级别的帮助
man -k 查看命令中包含指定字符串的所有相关命令的帮助
info
(Unlike the man command, the help information of the info command is a complete set of information)
Syntax: info command
Interactive keys:
下箭头: 向下移动一行
上箭头: 向上移动一行
PGON或SPACE键: 向后滚动一页
PGUP或DEL键: 向前滚动一页
?键: 查看帮助信息
N键: 显示(相对于本节点的)下一节点的文档内容
P键: 显示(相对于本节点的)前一节点的文档内容
U键: 进入当前命令所在的主题
M键: 敲M键后输入命令的名称就可以查看该命令的帮助文档了
G键: 敲G键后输入主题名称,进入该主题
L键: 回到上一个访问的页面
Q键: 退出info
help
English original meaning: help
function description: display help for shell built-in commands
Syntax: help built-in commands
--help
(Most commands can use the --help option to view help)
Syntax: command --help