Whereis Search program Simple and quick Command English original meaning
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