Find is a very useful find tool in Linux. It can find the target file through the file path given by the user. Because it searches the entire file path in the search process to match all the target files, the search speed will be slightly slower, we can also based on the file name, size, type, dependencies and permissions and other criteria to find the exact target file. You can also delete or display details such as the found file.
syntax format for Find
Find [-h] [-l] [-p] [-D debugopts] [-olevel] [path ...] [Expression]
find files that begin with "network" in the file name under /etc:
.650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/78/1F/wKiom1Z2YrLCTJ67AAAqoV8r4XI477.png "title=" 1.png "alt=" Wkiom1z2yrlctj67aaaqov8r4xi477.png "/>
You can also look for it without distinguishing between the character casing:
.650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/78/1F/wKiom1Z2YsfhHTfUAAA2vVt4Wo0153.png "title=" 2.png "alt=" Wkiom1z2ysfhhtfuaaa2vvt4wo0153.png "/>
Let's look at the exact search based on the owner, group and file type: For example, if you find the main root of/etc subordinate , It is the directory file of LP and displays detailed information.
.650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/78/1F/wKiom1Z2YtfyfI8VAAAkWWqhgOg558.png "title=" 3.png "alt=" Wkiom1z2ytfyfi8vaaakwwqhgog558.png "/>
To find the genus non- root directory file with -not:
.650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/78/1F/wKiom1Z2YuvDPvzPAAAq5k7uF48655.png "title=" 4.png "alt=" Wkiom1z2yuvdpvzpaaaq5k7uf48655.png "/>
Search by file size (k,M,G) such as 1k;4 days of files visited:
~]# find/etc-mtime-4-a-size-1k–ls
use permissions to find files that do not have write permission for all users in the/etc directory
~]# Find/etc-not-perm/222-type F–ls
Well, if you have more information about please give me a lot of advice on how to use Find.
Find on the Linux lookup tool