find
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
find [2009/06/23 23:30] – k2patel | find [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 42: | Line 42: | ||
The first command can be modified to specify other date and time,\\ | The first command can be modified to specify other date and time,\\ | ||
so that the commands will return all files that have changed since that particular date and time. | so that the commands will return all files that have changed since that particular date and time. | ||
+ | |||
+ | |||
+ | <code bash | cmd> | ||
+ | find . -type f -mtime +14 -ok rm -f {} \; | ||
+ | </ | ||
+ | |||
+ | Confirm before delete \\ | ||
+ | All files older then 14 days in root of location will be deleted with confirmation. | ||
find.1245799815.txt.gz · Last modified: 2020/08/10 02:30 (external edit)