Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unix find command

Status
Not open for further replies.

toronto2003

IS-IT--Management
May 5, 2003
14
CA
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!
 
This will find and remove files whose 'status' was changed more than 60 days ago - so option 1

I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top