Common Linux commands (version 2)-Help commands

Source: Internet
Author: User

Common Linux commands (version 2)-Help commands
Help commands

1. man [manual]:/usr/bin/man

Obtain the help document of the command or configuration file, and check the help of the command first.

Format: man [command or configuration file] # Call more

E. g.

Man ls # view the help information of the ls command

Man services # view the help information of the configuration file services

Appendix-there are nine types of help files in Linux:

For example, man 5 passwd // view the help of the configuration file

Default Value: man 1 passwd

2. info [information]:/usr/bin/info

Note: There is no big difference with man, except that the information is not presented in the same way, and this command is not available in UNIX systems.

3. Get brief information about the relevant file:

1) whatis [search the whatis database for complete words.]

Format: whatis [any keyword]

# Obtain the brief description of the index and find the basic purpose of this command.

For example, whatis apropos

2) apropos [search the whatis database for strings.]

Format: apropos [any keyword]

# Used to obtain file configuration information, similar to: man-k [file]

Appendix-but to run these two commands correctly, you must create a whatis database. The command must be run as root.

/Usr/sbin/makewhatis

# If an error occurs when these two commands are used, the whatis database is not created.

Appendix-[command] -- help # mainly used to obtain command option Information

Apropos [file]

4. help # view the file help of Shell built-in commands

For example, the difference between man cd and help cd

Appendix-man bash # used to view built-in commands contained in Shell

For more information about Shell, see other blogs-four days proficient in Shell programming series:

Http://blog.csdn.net/zjf280441589/article/details/17455515

Http://blog.csdn.net/zjf280441589/article/details/17467069

Http://blog.csdn.net/zjf280441589/article/details/17487351

Http://blog.csdn.net/zjf280441589/article/details/17503985

Related Article

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.