Linux study notes -- whereis command (SEARCH Command)
Where whereis is used to search for the command and help document.
Whereis command features:
1) The "whereis" command can only search for system commands, but cannot search for common files. 2) The "whereis" command is similar to the "locate" command to find data from the database, so the query speed is fast.
1. Command Format:
Whereis [Option] command name
2. Common options:
"Whereis-B" only searches for executable file locations. "Whereis-m" only finds the location of the help document. (M stands for man) "whereis-s" to find the location of the source code file. (S indicates source)
3. Common examples:
1) view the location of the command "pwd" and the location of the help document
2) only view the position of the command "pwd"
<喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4NCjxwcmUgY2xhc3M9 "brush: SQL;"> 3) only view the location of the help document for the command "pwd"