This command searches for files that meet the conditions in a specific directory. These files should belong to the original code, binary files, or help files.This command can only be used to find binary files, source code files, and man manual pages. Generally, the locate command is used to locate files.SyntaxWhereis [-bfmsu] [-B Parameters:-B only searches for binary files.-B -F does not display the path name before the file name.-M: only find the description file.-M -S only searches for origin
Command function:
Find binary Files locationFind the location of the software's configuration fileFind source code file locationView the man manual location
Grammar
The basic syntax is as follows:
Whereis commandORWhereis ProgramORWhereis [Options] ProgramORWhereis-bms directory-f CommandWhereis Use examples:Find the location of the date command's executable file, source code, and Man manual, enter:$ Whereis
Linux under the Whereis command and find command a bit similar, Whereis command lookup faster, but can only find the program name, with the following small series to understand the specific use of the Whereis command.
The Whereis command searches only binaries (parameter-B), man description files (parameter-m), and so
Link: http://codingstandards.iteye.com/blog/986891 (reprinted please indicate the source)
Description
The whereis command is used to locate the command location, including the execution file, source code, and manual page file (locate the binary, source, and manual page files for a command ). If you want to find the location of any file, you can use commands such as locate or find.
Common Parameters
Format: whereis
Whereis usage in linux, linuxwhereis
The whereis command can only be used for searching program names, and only binary files (parameter-B), man description files (parameter-m), and source code files (parameter-s) can be searched ). If the parameter is omitted, all information is returned.
Compared with find, whereis searches very quickly, because the linux system
A linux command (17) every day: whereis command link: A linux command (1) every day: ls command restart (2): cd command http://www.2cto.com/ OS /201210/163050.html#a Li every day ..
One linux command every day (17): whereis command link: One linux command every day (1): ls command http://www.2cto.com/os/201210/163049.html ; One linux command every day (2): cd command http://www.2cto.com/os/201210/163050.htm
The Whereis command can only be used for program name searches, and only binary files (parameter-B), man description file (parameter-m), and source code file (parameter-s) are searched. If the argument is omitted, all information is returned.Whereis looks very fast when compared to find, because the Linux system records all the files in the system in a single database file, and when you use Whereis and the
Whereis command
Function Description: The whereis command locates executable files, source code files, and help files in the file system. The attributes of these files should belong to the original code, binary file, or help file. The whereis Program also provides the ability to search for source code, specify a backup search path, and search for unusual items. C
One linux Command every day (17): whereis command link: One linux Command every day (1): ls command http://www.bkjia.com/ OS /210210/163049.html#linuxlinuxcommand every day (2): cd command serial (3 ): pwd command Export (4): mkdir command http://www.bkjia.com/ OS /201210/1620.3.html#a linuxcommand every day (5): rm command Export (6): rmdir command http://www.bkjia.com/ OS /201210/164 017. html; one linux Command every day (7): mv command running (8)
The Whereis command can only be used for the search of program names, and only binary files (parameter-B), man description file (parameter-m), and source code files (parameter-s) are searched. If the argument is omitted, all information is returned.
Whereis lookups are very fast compared to find, because the Linux system records all of the files in the system in a database file, and when you use the
The whereis command can only be used for searching program names, and only binary files (parameter-B), man description files (parameter-m), and source code files (parameter-S) can be searched ). If the parameter is omitted, all information is returned.
Compared with find, whereis searches very quickly, because the Linux system records all files in the system in a database file, when
we often find a file in Linux, but we do not know where to put it, you can use some of the following commands to search.These are the information found on the Internet (reference 1), because sometimes it is not used for a long time, and when it is used, it is often confused, so it is easy to use.
which viewing the location of an executable file
Whereis Viewing the location of a file
Locate to view file locations with a database
The Whereis command can only be used for Program name search (where is the program installed?). )。 And just search for binary files (parameter-B), man document (parameter-m) and source file (parameter-s).If you omit a parameter, all information is returned.Compared with find. Whereis is very fast to find. This is because the Linux system will record all the files in the system in a database file. When using
We often find a file in Linux, but we do not know where to put it, you can use some of the following commands to search. These are the information found on the Internet (reference 1), because sometimes it is not used for a long time, and when it is used, it is often confused, so it is easy to use.
Which viewing the location of an executable file
Whereis viewing the location of a file
Locate to view file locations with a database
F
Http://www.cnblogs.com/peida/archive/2012/11/09/2761928.htmlThe Whereis command can only be used for program name searches, and only binary files (parameter-B), man description file (parameter-m), and source code file (parameter-s) are searched. If the argument is omitted, all information is returned.Whereis looks very fast compared to find, because the Linux system records all the files in the system in a single database file, and when you use
We often find a file in Linux, but we do not know where to put it, you can use some of the following commands to search. These are the information found on the Internet (reference 1), because sometimes it is not used for a long time, and when it is used, it is often confused, so it is easy to use.
Which viewing the location of an executable file
Whereis viewing the location of a file
Locate to view file locations with a database
F
We often find a file in Linux, but we do not know where to put it, you can use some of the following commands to search. These are the information found on the Internet (reference 1), because sometimes it is not used for a long time, and when it is used, it is often confused, so it is easy to use.
Which viewing the location of an executable file
Whereis viewing the location of a file
Locate to view file locations with a database
F
The Whereis command can only be used for program name searches, and only binary files (parameter-B), man description file (parameter-m), and source code file (parameter-s) are searched. If the argument is omitted, all information is returned.Whereis looks very fast compared to find, because the Linux system records all the files in the system in a single database file, and when you use Whereis and the locat
The Whereis command can only be used for program name searches, and only binary files (parameter-B), man description file (parameter-m), and source code file (parameter-s) are searched. If the argument is omitted, all information is returned.Whereis looks very fast compared to find, because the Linux system records all the files in the system in a single database file, and when you use Whereis and the locat
!#################################################################The Whereis command can only be used for program name searches, and only binary files (parameter-B), man description file (parameter-m), and source code file (parameter-s) are searched. If the argument is omitted, all information is returned.Whereis looks very fast compared to find, because the Linux system records all the files in the system in a single database file, and when you use
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.