remove_old_directories

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


remove_old_directories [29.03.2018 18:03] (current) – created Pascal Suter
Line 1: Line 1:
 +====== Remove old Directories ======
 +just a quick one-liner used to remove all subdirectories of /tmp/mydir/ that are older than 500 days: 
 +  find /tmp/mydir/* -maxdepth 0 -ctime +500 -type d -exec rm -rf {} \;
  
  • remove_old_directories.txt
  • Last modified: 29.03.2018 18:03
  • by Pascal Suter