Linux Find Command
Create a file First :
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/6D/wKioL1dBZdvDC-0eAABgrTkY3-E270.png "title=" Picture 1.png "alt=" Wkiol1dbzdvdc-0eaabgrtky3-e270.png "/>
1. time-related options:
-atime(Access time),-ctime(change time) and -mtime(modification time) , -mtime as an example
-mtime n:n is a number, meaning A file that has been changed in the day prior to n days ;
-mtime +n: Lists the n days ago (excluding n days per se) files that have been changed;
-mtime-n: Lists the within n days ( including n days per se ) files that have been changed;
-newer File:file for an existing file, list The new file name
Find./-mtime 0 finds files that have been modified within the current hour
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/80/6F/wKiom1dBZaPgALlsAAAijVOdnFQ671.png "title=" Picture 2.png "alt=" Wkiom1dbzapgallsaaaijvodnfq671.png "/>
Find./-mtime +1 finds files modified 1 days ago
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/6D/wKioL1dBZqCy2wQkAAA6vUBXeMY746.png "title=" Picture 3.png "alt=" Wkiol1dbzqcy2wqkaaa6vubxemy746.png "/>
Find./-mtime-3 finds files that have been modified less than or equal to 3 days
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/80/6F/wKiom1dBZcOjtkrhAAAsANHjqQY807.png "title=" Picture 4.png "alt=" Wkiom1dbzcojtkrhaaasanhjqqy807.png "/>
Find./-newer file lists files that are newer than
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/80/6F/wKiom1dBZdLAoTWAAAAWPlXvTbA943.png "title=" Picture 5.png "alt=" Wkiom1dbzdlaotwaaaawplxvtba943.png "/>
2. parameters related to file permissions and names
-Name filename: Search file with file name filename
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/6D/wKioL1dBZtjizZHwAAASPzljtWs325.png "title=" Picture 6.png "alt=" Wkiol1dbztjizzhwaaaspzljtws325.png "/>
-size[+/-] Size: Search RatioSIZEalso big (+) or small (-The specification includes a file withCindicates the length of the file as a byte count,b--Block ( +bytes);C--bytes;W--Word (2bytes);k--Kbytes;M--megabytes;G--gigabytes.
Find ~-size (+/-)size: When this command is + , look for a size large files; for - when looking for files smaller than size ; no lookup equals size The file.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/80/6D/wKioL1dBZv7znjDBAAAlVAwIgDw825.png "style=" float: none; "title=" Image 7.png "alt=" Wkiol1dbzv7znjdbaaalvawigdw825.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/6F/wKiom1dBZg_h6vT9AAAtcrAo5sM098.png "style=" float: none; "title=" Image 8.png "alt=" Wkiom1dbzg_h6vt9aaatcrao5sm098.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/6F/wKiom1dBZg-Q4XRhAAAd2e_Y9e8754.png "style=" float: none; "title=" Image 9.png "alt=" Wkiom1dbzg-q4xrhaaad2e_y9e8754.png "/>
-type Type : Search file type is TYPE of documents;
Normal file f
symbol file l
Catalog D
character device c
block device b
socket S
pipe file p
Find. -type f Find files of type normal file
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/80/6D/wKioL1dBZxTSlzNhAAAsdxCET5w734.png "title=" Picture 10.png "alt=" Wkiol1dbzxtslznhaaasdxcet5w734.png "/>
-perm mode: Search file permissions exactly equal to mode
Find-perm-g=w file with read-only permission found
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/6D/wKioL1dBZybAW4Y1AAAg2cD1Yzk836.png "title=" Picture 11.png "alt=" Wkiol1dbzybaw4y1aaag2cd1yzk836.png "/>
Simple application of the Find command under Linux