内容来源于人民邮电出版社《Linux命令应用大词典》
讲述729个命令,1935个例子
学习Linux系统的参考书、案头书,遇到不懂的命令或命令选项一查即可
争取每天都发布内容
本文出自 “airfish2000” 博客,更多命令查看博客:
http://airfish2000.blog.51cto.com/10829608/1871365
help命令
使用help命令可以查看内部Shell命令的帮助信息。
命令语法:
help [选项] [命令]
选项含义:
命令中各选项的含义如表所示。
表 help命令选项含义
选项 | 含义 |
-d | 显示命令简短的主题描述 |
-s | 显示命令简短的语法描述 |
例:查看pwd命令详细的帮助信息。
[root@rhel ~]# help pwd
pwd: pwd [-LP]
Print the nameof the current working directory.
Options:
-L print the value of $PWD if it names thecurrent working
directory
-P print the physical directory, withoutany symbolic links
By default,`pwd' behaves as if `-L' were specified.
Exit Status:
Returns 0unless an invalid option is given or the current directory
cannot be read.
例:查看pwd命令简短的语法描述。
[root@rhel~]# help -s pwd
pwd:pwd [-LP]
例:查看pwd命令简短的主题描述。
[root@rhel~]# help -d pwd
pwd- Print the name of the current working directory.
转载于:https://blog.51cto.com/airfish2000/1871365