Common Linux commands-help commands

Source: Internet
Author: User
Man's help information format: the man command or the configuration file command can not only obtain the help information of the command, but also the information of the configuration file. This command displays the help information in the more format. we can flip the page by space. L example: manls... Info & nb

 

Man gets help information

 

Format: man command or configuration file

 

This command not only obtains help information about the command, but also information about the configuration file. This command displays the help information in the more format. we can flip the page by space. L example: man ls is used to view the help information of ls. screenshots are not convenient because of the large amount of help information.

 

Man passwd, we know that this is not only a command but also a configuration file, so what is displayed at this time? In Linux, the command help information is displayed by default. we can use man 5 passwd to view the help information of the configuration file. If the configuration information we view does not return the same name as the command, we can view the configuration information help without adding "5.

 

 

 

Info for help

 

Format: info keyword

 

This command is not only used to view the help information of the commands we use, but also other information, such as a file and a directory. basically, you can view the help you want to view.

 

Example: View ls help information in info ls

 

Info etc view help information of etc directory

 

Compared with man, the two display different help information. This display is also displayed in more format. Sometimes we just want to see the options of the next command. we can use the command name + space + "-- help". This shows the options of the command, for example:

 

Ls -- help)

 

Sometimes this help information is too long. we just want to take a look at the simple help, you can use the following command.

 

 

Whatis obtains brief description about the index.

 

Format: whatis keyword

 

 

We can see that this command can not only view brief information about the command, but also view brief information about files in a directory.

 

Author: Meng Xiangyue's blog: blog.csdn.net/mengxiangyue (does Mr Meng need a blog website? As you wish, thank you for your article, which will make more new people better)

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.