Linux File Management Whereis

Source: Internet
Author: User

Whereis Search program Simple and quick Command English original meaning
    • where is
Command format
    • whereis [-bmsu] [BMS 目录名 -f ] 文件名
Command function
    • The Whereis command locates the location of the executable file, the source code file, and the Help file in the file system. The properties of these files should belong to the original code, binary files, or Help files. The Whereis program also has the ability to search for source code, specify alternate search paths, and search for unusual items. Whereis find is very fast, because the Linux system will record all the files in the system in a database file, when using Whereis, will look for data from the database, rather than by traversing the hard disk to find, the efficiency will naturally be very high. However, the database file is not updated in real time and is updated once a week by default, so when we use Whereis to find files, we sometimes find data that has been deleted, or just created the file, but cannot find it because the database file was not updated.
Common parameters
    • -bLocate the executable file.

      -mLocate the Help file.

      -sLocate the source code file.

      -uSearch for files other than executables, source code files, and Help files under the default path.

      -BSpecifies the path to the search executable file.

      -MSpecifies the path to the search Help file.

      -SSpecifies the path to the search source code file.

Common Example Example 1

Only binary files are found

[[email protected] ~]# whereis -b svnsvn: /usr/bin/svn /usr/local/svn[[email protected] ~]# whereis -m svnsvn: /usr/share/man/man1/svn.1.gz[[email protected] ~]# whereis -s svnsvn:[[email protected] ~]#

Linux File Management Whereis

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.