Skip to content

Instantly share code, notes, and snippets.

@mauromorales
Created August 9, 2013 08:44
Show Gist options
  • Save mauromorales/6192112 to your computer and use it in GitHub Desktop.
Save mauromorales/6192112 to your computer and use it in GitHub Desktop.
Maintenance
# space being used by folder
sudo du -sch *
# display files older than 30 days
sudo find . -ctime +30 -print0 | xargs -0 -n1
# remove them
sudo find . -ctime +30 -print0 | xargs -0 rm
# remember to clear .SyncArchive files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment