Linux/Unix Shell Script – Delete files from a folder based on date | IT is Fun

Linux/Unix Shell Script – Delete files from a folder based on date | IT is Fun

瀏覽:1024
日期:2025-04-23
Say there's are alot files being created in a folder and it causes full disk space problem, here's one of the example to remove the files that is older that 2 days: find /home/user/yourpath/ -mtime +2 -type f -exec rm -rf {} \; Or if you want to maint...看更多