Linux Common Commands (second edition)--HELP commands

Source: Internet
Author: User

Help commands

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

Get help for a command or profile , prioritize help for commands

Format: Man [ command or Profile ] #会同时调用 more

e.g.

Man ls# See Help for LS command

Help information for Man services #查看配置文件Services

Attached-the Help files in the Linux system are divided into nine types :

Example: Man 5 passwd// Help to view configuration files

Default: Man 1 passwd

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

Description: There is no big difference between the man and the man , except that the information is presented in a different way, and there is no such command in the UNIX System.

3, get the relevant documents short information:

1) Whatis[search The Whatis database for complete words.]

Format: whatis [ any keyword ]

# Get a short description of the index to find the most basic use of this command

such as: Whatis apropos

2) Apropos[search the Whatis database for strings.]

Format :apropos [ any keyword ]

# used to get configuration information for a file similar to:man-k [ file ]

Attached-but these two sets of commands must be executed correctly, the whatis database has to be created , and the command needs to be rooted . Identity Run

/usr/sbin/makewhatis

# When an error occurs using these two commands , the whatis database is not established

With the-[ command ] --help# is primarily used to get the option information for a command

Apropos [ file ]

4. Help #查看 The shell's built-in command files

For example: Man CD differs from Help CD

Attached-man bash# can be used to see What built-in commands the Shell contains

Also-for other shell explanations, please refer to the other blogs-"Four days of 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

Linux Common Commands (second edition)--Help commands

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.