Which is the location of the lookup command, which is based on the user path path,
Locate is found in the database, and the database is updated as large as daily.
Whereis can find executable commands and man page
Find is finding files based on criteria.
which can find executable files and aliases (alias)
Which viewing the location of an executable file
Whereis viewing the location of a file
Locate to view file locations with a database
Find actual search hard disk query file name
1, which
Grammar:
[[email protected] ~]# which executable file name
For example:
[email protected] ~]# which passwd
/usr/bin/passwd
Which is to find the executable file through the PATH environment variable to that route, so the basic function is to find the executable file
2, Whereis
Grammar:
[[email protected] ~]# Whereis [-bmsu] file or directory name
Parameter description:
-B: Only binary files are found
-M: Only files found under the manual path of the description file
-S: Find source files only
-u: File without document description
For example:
Linux Find command