linux显示命令行,Linux命令行大全:help-显示命令的使用信息

超、凢脫俗 2023-01-19 09:59 37阅读 0赞

help-显示命令的使用信息本文引用地址:http://www.eepw.com.cn/article/201610/305549.htm

很多可执行程序都支持—help选项,—help选项描述了命令支持的语法和选项。例如:

[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选项,但是我们还是要试试。这通常会产生一条错误消息,该错误消息也能揭示相同的命令使用信息。

发表评论

表情:
评论列表 (有 0 条评论,37人围观)

还没有评论,来说两句吧...

相关阅读

    相关 linux 常用命令 大全

    Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错。我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制,当然,这也是很多人喜

    相关 linux命令

    linux命令行 更多文章欢迎访问个人博客 [www.herobin.top][] 查询目录中内容:ls ls [选项] [文件或目录]