Locate
Command name:Locate
command location:/usr/bin/locate
Execute Permissions: All Users
Syntax: locate file name
function Description: find files in the file repository
Example :Locate Inittab
UpdateDB upgrade File repository
which
command name:Witch
command location:/usr/bin/which
Execute Permissions: All Users
syntax: which command
function Description: search for the directory and alias information for your command
Example :which LS
Whereis
command name:Whereis
command location:/usr/bin/whereis
Execute Permissions: All Users
syntax: whereis [ command name ]
function Description: search for the directory where the command is located and help document road strength
Example :whereis ls
Grep
command name:grep
command location:/bin/grep
Execute Permissions: All Users
syntax: grep–iv [ Specify string ] [ file ]
function Description: searches the file for string-matched rows and outputs
- i is case insensitive
-V excludes the specified string
Example :grep mysql/root/install.log
This article is from the "djh01" blog, make sure to keep this source http://djh01.blog.51cto.com/10177066/1686672
Linux File Search Command