Last active
July 19, 2016 08:23
-
-
Save patrickgill/635b16291c35018e26fe29b4d3631d32 to your computer and use it in GitHub Desktop.
clean os x cache files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
diskutil info / | awk '/Free Space/ { print $4 $5, "free before"}' | |
sudo rm -rf ~/Library/Caches/* | |
sudo rm -rf /Library/Caches/* | |
sudo rm -rf /System/Library/Caches/* | |
diskutil info / | awk '/Free Space/ { print $4 $5, "free after"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment