When you setup a server, sometimes you need to clear temporary files to save the available hard disk. You also setup a crontab to run this command everyday.
1 |
find /path/to/files -type f -mtime +5 -exec rm {} \; |
When you setup a server, sometimes you need to clear temporary files to save the available hard disk. You also setup a crontab to run this command everyday.
1 |
find /path/to/files -type f -mtime +5 -exec rm {} \; |