Linux命令行大全:help-顯示命令的使用信息
help-顯示命令的使用信息
很多可執(zhí)行程序都支持--help選項(xiàng),--help選項(xiàng)描述了命令支持的語法和選項(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ò)誤消息也能揭示相同的命令使用信息。