Find and Delete Older Files in Linux
October 6, 2017
Installation/Configurations10g, Installation/Configurations11g, Installation/Configurations12c, Oracle Database Material
Delete Older Files in Linux
Files older than 1 day
find /rman/arch/*.dbf -mtime +1 -exec mv {} /rman/archbkp/ \;
Move files older than 25 hours
find /rman/arch/*.dbf -mmin +1500 -exec mv {} /rman/archbkp/ \;
List files older than 2hours
find /rman/arch/*.dbf -mmin +120 -exec ls -ltr {} \;
Delete files older than 1 day
find /rman/arch/*.dbf -mtime +1 -exec rm {} \;
Delete files older than 1 hours
find /rman/arch/*.dbf -mmin +60 -exec rm {} \;
Related Posts