Feature Description: Find files.
Syntax: Whereis [-bfmsu][-b < directory] [M < directory ...] [-S < directory ...] [File ...]
Supplemental Note: The WHEREIS directive looks for eligible files in a specific directory. The spirits of these files should be in the original code, binary file, or help file.
Parameters
-B finds only binary files.
-b< directory > Find binaries only in the set directory.
-F does not display the path name before the file name.
-M to find only the description file.
-m< directory > Find the description file only in the set directory.
-S finds only the original code file.
-s< Directory > Locate the original code file only under the set directory.
-U finds files that do not contain the specified type.
Use instance:
Example 1: Find files related to * * * files
Whereis SVN
Output:
[Root@localhost ~]# Whereis Tomcat
Tomcat:
[Root@localhost ~]# Whereis SVN
SVN:/usr/bin/svn/usr/local/svn/usr/share/man/man1/svn.1.gz
Description
Tomcat is not installed, can not find out, SVN installation found a lot of related files
Instance 2: Only binary files are found
Command:
Whereis-b SVN
Output:
[Root@localhost ~]# Whereis-b SVN
SVN:/USR/BIN/SVN/USR/LOCAL/SVN
[Root@localhost ~]# whereis-m SVN
SVN:/usr/share/man/man1/svn.1.gz
[Root@localhost ~]# whereis-s SVN
Svn:
[Root@localhost ~]#
Description
Whereis-m SVN found the documentation path, Whereis-s svn find source file.