Linux命令行大全:help-顯示命令的使用信息
help-顯示命令的使用信息
本文引用地址:http://butianyuan.cn/article/201610/305549.htm很多可執(zhí)行程序都支持--help選項(xiàng),--help選項(xiàng)描述了命令支持的語(yǔ)法和選項(xiàng)。例如:
[me@linuxbox ~]$ mkdir --help
Usage: mkdir [OPTION] DIRECTORY…
Create the DIRECTORY(ies), if they do not already exist.
-Z, --context=CONTEXT (SELinux) set security context to CONTEXT
Mandatory arguments to long options are mandatory for short options too.
-m, --mode=MODE set file mode (as in chmod), not a=rwx – umask
-p, --parents no error if existing, make parent directories as
needed
-v, --verbose print a message for each created directory
--help display this help and exit
--version output version information and exit
Report bugs to
一些程序不支持--help選項(xiàng),但是我們還是要試試。這通常會(huì)產(chǎn)生一條錯(cuò)誤消息,該錯(cuò)誤消息也能揭示相同的命令使用信息。
評(píng)論