Use the help command of linux to display help information
This article shows you the use of linux's help command to display help information, the code is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.
The help command is used to display help information for shell internal commands.
Help commands can only display help information about internal commands in shell, while most commands in linux systems are external commands, so the role of help commands is very limited. Help information for external commands can be viewed by man commands or info commands.
Syntax format: help [parameters] [internal commands]
Common parameters:
-d output a short description of each command-s output help information in short format-m displays help information in the format of a pseudo man manual
Reference example
Displays help information for the cd command:
[root@linuxcool ~] # help cd
Display help information for cd commands in a short format:
[root@linuxcool] # help-s cd
Cd: cd [- L | [- P [- e]] [- @]] [directory]
Output a short description of the cd command:
[root@linuxcool] # help-d cd
Cd-Change the shell working directory.
Output help for cd commands in pseudo-man manual format:
[root@linuxcool] # help-m cd
If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.