Linux command (+): Help command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.