Skip to content

Instantly share code, notes, and snippets.

@williamchang73
Created October 22, 2014 06:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save williamchang73/7823bcea66c9aaf0a34b to your computer and use it in GitHub Desktop.
Save williamchang73/7823bcea66c9aaf0a34b to your computer and use it in GitHub Desktop.
clean up mac cache files
echo "clean up start >>>>>>>>>>>>>>>>>>>>>>"
clear
df -h
echo "clean desktop..."
rm -rf ~/Desktop/*
echo "clean download..."
rm -rf ~/Downloads/*
echo "clean trashcan..."
rm -rf ~/.Trash/*
echo "clean user library cache..."
rm -rf ~/Library/Caches/*
echo "clean system library cache..."
rm -rf /System/Library/Caches/*
df -h
echo "clean up finished===================="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment