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