摘要:
下文讲述Linux操作系统中查看命令的帮助文档的方法分享,如下所示;
实现思路:
使用 --help命令即可查看命令自带的帮助文档信息
例:
查看ls命令的帮助信息
[root@localhost test]# ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort.
Mandatory arguments to long options are mandatory for short options too.
-a, --all do not ignore entries starting with .
-A, --almost-all do not list implied . and ..
--author with -l, print the author of each file
-b, --escape print octal escapes for nongraphic characte