User Tools

Site Tools


find

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
find [2009/06/23 23:30]
k2patel
find [2020/08/10 02:35] (current)
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 {} \;
 +</​code>​
 +
 +Confirm before delete \\
 +All files older then 14 days in root of location will be deleted with confirmation.
  
find.txt ยท Last modified: 2020/08/10 02:35 (external edit)