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!
|