Six ways to get help with Linux commands

Source: Internet
Author: User
Tags manual

One, help Command

Apply to internal commands

Example:

The code is as follows:

# Type cd

CD is a shell builtin

# Help CD

# type LS

LS is aliased to ' LS--color=auto '

# Help LS

-bash:help:no Help topics match ' ls '. Try ' help help ' or ' man-k ls ' or ' info ls '.

 Second, command–help/-h

Applicable to external commands

For example:

The code is as follows:

# ls--help

Three, man Command

Example:

The code is as follows:

# Man CD

Note Manual manual is a chapter; Man # Command (#表示章节号)

1, all users can use the command

2, System kernel calls, not every command has a system call (such as: Man 2 read)

3. Library Call

4, special documents, such as:/dev/tty1

5, file Format (command configuration file syntax, such as: Man 5 passwd)

6. Game related

7. Miscellaneous

8, administrator command, such as: fdisk

The man Command query operation reference to the command mode in "Vi,vim usage"

Read the man command syntax

[]: Optional content

<>: Must give the content

A|b|c: Choose one More

... : You can have multiple

IV. Info Command

There is a hyperlink stability document, info is the information page, provide the author, version, when the release of more detailed information, Man Handbook is to tell you how to use

  Five, the README

Most programs have a corresponding help document, saved in the/usr/share/doc folder

Such as:

# ls/usr/share/doc/ntp-4.2.4p8/

Changelog COPYRIGHT NEWS

VI, Google

Encounter problems, apart Google, priority reference project official documents

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.