Linux finds files by time
Requires a script that is processed according to the last modification time.
Here's a basic use of find, depending on the size of the file, the type, or the time. linux file three time (in the case of Find): atime Last access time, such as LS, more etc., but chmod, chown, LS, stat, etc. will not be modified for some time, using Ls-utl can be checked in this time sequence ctime the last state modification time, such as chmod, Chown and other state time changes but the modification time will not change, using stat file can be viewed; mtime the last time the content was modified, such as VI save, etc., change time changes , Atime and CTime also corresponding change . , as long as the document has been modified, then the CTime will change. find./-ctime-1 files that have been modified within one day of the current directory find./-cmin-5 The current directory modified files in 5 minutes re-enhanced, statistics the current directory in 20 minutes modified CSS file line number find./-cmin-20-name "*.css" |wc-l then sometimes you don't want to find some subdirectories, slices single directories Find/web-path "/web/pict Ure " -prune-o-name" *.jsp " two directories find/web \ (-path/web/picture-o-path/web/p2 \)-prune-o-name" *.J SP " multiple directories find/web \ (-path/web/picture-o-path/web/p2-o-path/web/p3 \)-prune-o-name" *.jsp "