whereis is used to find the location of executables, source code, and man pages. The whereis command can only be used for program name searches, and only searches for binary files (parameter -b), man documentation (parameter -m), and source code files (parameter -s). If the parameter is omitted, all information is returned.
Syntax format
whereis [parameters][file...]whereis [-bfmsu][-B <directory>...][-M <Table of Contents >...][-S <Directory>...][File...]
Parameters
-b: Find only binary files-B<Directory> : Find the binary file only in the set directory -f: Do not display the path name before the file name -m: Find only the description file -M<Directory>: Find the description file only in the set directory -s: Find only the original code File-S<Directory> Find the original code file only in the set directory -u: Find files that do not contain the specified type
Example
Use the "whereis" command to find The git related files, commands and results are as follows:
# whereis gitgit: /usr/bin/git /usr/share/man/man1/git.1.gz
Use the "whereis" command to find git binary The file location, command, and result are as follows:
# whereis -b gitgit: /usr/bin/git
for Windows 7 computers Microsoft will allow its computer OEMs and their system co-developers to d
This article mainly introduces the DB2 database in the inux installation process detailed, the step
First look at the TCP server side of the program: #include <stdlib.h> #include <stdio.h>
got a long time (about 3 days), and finally got through. At first I wanted to give up but slowly beg
Linux LAN slow transmission problems and private drivers of those broken things
How to implement DNS service under Linux
How to view the current Linux version
Linux Deepin 12.06 Beta2 Release
Ultra-simple Centos vpn build method only needs three, quickly build vpn
Install and configure FTP service in CentOS
Haproxy Installation Configuration Tuning Basics Tutorial
Tiny4412 assembly water light code, Tiny4412 bare metal LED operation
Linux hard disk error report (you must specify the filesystem type)
Win8 wireless wifi hotspot software recommended
Win10 system recovery start screen operation method
Good use of Windows XP music butler
Win7 system printer can not print files garbled how to solve
Lenovo: Windows 7 is more suitable for netbook systems than Linux
Win10 system how to set virtual memory is best
Teach you the accelerated slimming method after WinXP system installation
Do not find tools to start Win7 wallpaper automatically replace