Help command
functional description
The help command can only display command assistance information inside the shell . The Help for external commands can only be viewed using the man or Info command, and you can use the--HELP command to display the command's usage information. Use the following:
| Help (options) (parameters) |
Command parameters
| Options |
Meaning |
| -D |
Output a short description of each topic |
| -M |
show how to use the Man Handbook format |
| -S |
Display simple Help information |
Example
Use Help to display internal CD commands
|
[[email protected] ~]# type cd #查看cd是内嵌命令
The CD is a shell embedded
[email protected] ~]# help cd #查看cd帮助信息
CD:CD [-l|[ -P [-e]] [dir]
Change the shell working directory.
Change the current directory to DIR. The default DIR is the value of the
HOME Shell variable.
... Slightly
[[email protected] ~]# help-d cd #使用-D option to view a short description of the command
Cd-change the shell working directory.
[[email protected] ~]# help-m cd #使用-M option, view in Man manual
NAME
Cd-change the shell working directory.
Synopsis
CD [-l|[ -P [-e]] [dir]
DESCRIPTION
... Slightly
[[email protected] ~]# help-s CD #使用-S option, simple help information
CD:CD [-l|[ -P [-e]] [dir]
|
This article is from the "Zhao Dongwei blog" blog, make sure to keep this source http://zhaodongwei.blog.51cto.com/4233742/1871458
Linux command (+): Help command