Differences

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

Link to this comparison view

remove_old_directories [29.03.2018 18:03] (current)
Pascal Suter created
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 {} \;