mardi 2 décembre 2014

find command with -ctime +0 for testing


the following command will delete directors and sub directories that older then 100 days



find /var/tmp -type d -ctime +100 -exec rm -rf {} \;


but actually I want to perform test to verify if the command will remove all directories


so I set -ctime +0 ( in order to perform remove directories that old then 0 day )



find /var/tmp -type d -ctime +0 -exec rm -rf {} \;


but the find command not remove the directories


Please advice how to change the -ctime ? in order to perform the test



Aucun commentaire:

Enregistrer un commentaire