How to use help command, a common Linux command

User 4988085 2022-06-24 05:59:14 阅读数:1,002

usehelpcommandcommonlinux

Linux Common commands help command Used for display shell Help for internal commands .help The command can only display shell Internal command help information . For the help information of external commands, you can only use man perhaps info Command view , Let's share Linux Common commands help How to use the command .

Command format

 help [-dms] [PATTERN...]

PATTERN For matching commands , If there is a command that matches the pattern ,help The return status is 0, Otherwise, it is not 0.

Option description

 -d
   Output a short description of each command
 -m
   To resemble  man  Manual format description commands
 -s
   Show only the format used by the command 

example

(1) see help Own help information .

 help help

(2) To resemble man Manual format view help Command help information .

 help -m help

(3) see help A short description of the command .

 help -d help
 help - Display information about builtin commands.

(4) see help and cd Command use format .

 help -s help cd
 help: help [-dms] [pattern ...]
 cd: cd [-L|[-P [-e]]] [dir]

So far about Linux Common commands help End of command sharing , If you are right help There are still questions about the use of the command. You can submit the questions to us through the comment area .

copyright:author[User 4988085],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/175/20210729143829361u.html