View Single Post
Old 08-01-2005, 08:31 PM   #1 (permalink)
econ
Junior Member
 
Join Date: Jun 2005
Posts: 28
Default bash script to delete all directories over one week old

I am going to setup a cron job to delete all directories over one week old.

Is this the proper command to include?

find . -mtime +7 -exec ls -ld {} \;

I want to proceed with caution... since there is no easy undelete with Linux!
econ is offline   Reply With Quote
Sponsored Links