Linux whereis Command Finder installation location

Source: Internet
Author: User
Tags svn

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.

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.