Find command delete specific files older than 7 days in linux
/usr/bin/find /var/www/html/uploads -name "*.pdf" -type f -mtime +7 -exec rm {} \;
Find command delete all file of specific directory older than 7 days
/usr/bin/find /var/www/html/uploads -type f -mtime +7 -exec rm {} \;
/usr/bin/find /var/www/html/uploads -name "*.pdf" -type f -mtime +7 -exec rm {} \;
Find command delete all file of specific directory older than 7 days
/usr/bin/find /var/www/html/uploads -type f -mtime +7 -exec rm {} \;
0 comments:
Post a Comment