Linux study notes -- whereis command (SEARCH Command)

Source: Internet
Author: User

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"

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.