toronto2003
IS-IT--Management
Hello,
I've a find command in one of our crontab script. This was build by one of my colleage who no longer works now.
I need to know what the below mention command does:
##########
find . -ctime +60 -exec rm {} \;
##########
1. Is is counting the 60 days older files and removing them. Meaning files till 60 days will remain and any older will get removed
2. Is it counting the total 60 files (no matter what day) and removing the older files.
This find and remove is for our archive log files, which on an average creates 7-10 files daily.
Any help on this would be highly appreciated.
THANKS!
I've a find command in one of our crontab script. This was build by one of my colleage who no longer works now.
I need to know what the below mention command does:
##########
find . -ctime +60 -exec rm {} \;
##########
1. Is is counting the 60 days older files and removing them. Meaning files till 60 days will remain and any older will get removed
2. Is it counting the total 60 files (no matter what day) and removing the older files.
This find and remove is for our archive log files, which on an average creates 7-10 files daily.
Any help on this would be highly appreciated.
THANKS!