基于CentOS7
1.命令帮助
//由于Linux操作系统的命令很多,所以我们需要借助Linux提供的各种帮助工具。
1.1 帮助工具之一 :利用 whatis 查询命令
[root@localhost ~]# whatis ls
ls (1) - 列目录内容
ls (1p) - list directory contents
1.2 帮助工具之二:利用 “--help” 选项查询命令
[root@localhost ~]# ls --help
用法:ls [选项]... [文件]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.Mandatory arguments to long options are mandatory for short options too.
-a, --all 不隐藏任何以. 开始的项目
-A, --almost-all 列出除. 及.. 以外的任何项目
--author 与-l 同时使用时列出每个文件的作者
..........
1.3 帮助工具之三 :利用man查询命令
输入命令会出现以下图片窗口
1.4 帮助工具之四 :利用info查询命令
输入命令弹出以下窗口(q退出)
1.5 帮助工具之五 :其他获取帮助的方法
(1) 查询系统中的帮助文档
[root@localhost ~]# ls -l /usr/share/doc
总用量 80
drwxr-xr-x. 2 root root 32 3月 20 18:04 abattis-cantarell-fonts-0.0.25
drwxr-xr-x. 2 root root 35 3月 20 18:04 abrt-2.1.11
drwxr-xr-x. 3 root root 18 3月 20 18:04 abrt-dbus-2.1.11
drwxr-xr-x. 2 root root 50 3月 20 18:04 accountsservice-0.6.50
drwxr-xr-x. 2 root root 88 3月 20 18:04 acl-2.2.51
drwxr-xr-x. 2 root root 4096 3月 20 18:06 adcli
(2) 通过官方和获取Linux文档