CentOS online query command

Source: Internet
Author: User

CentOS online query command
Command function man queries and explains how to use a command, as well as instructions for this command locate locates the file and directory whatis to find the meaning of a command 6.1 man command

The man command is used to query and explain how to use a command and precautions for this command. This query is available in every Linux. Generally, you only need to enter the command man and the command name shell to list a complete description. Standard usage:

Man command name

To query the ls command manual page, enter the command:

Man ls

To read the manual Page, you can use the Page Up and Page Down keys, or use the space key to flip the Page backward and use B to flip forward. To exit the manual page, enter the command q. To search for keywords on the manual page, Enter the command/and keywords or phrases to search, and press Enter. All keywords displayed on the manual page are highlighted, allowing you to quickly read keywords in the context.

6.2 locate command

The main function of the locate command is to locate files and directories. Sometimes, you can use locate to locate files and directories without knowing where a file or directory exists. By using the locate command, you will see every file and directory that includes the field search. For example, if you want to search for a file with the word "test", enter the following command:

Locate test

The locate command uses the database to locate the files or directories with the word "test.

6.3 whatis command

The whatis command is used to query the meaning of a command. It is easy to use and does not require any parameters. Simply add the command to be queried after the whatis command, but it is very practical.

To query the meaning of the mv command, enter the command:

Whatis mv


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.