Skip to content

Instantly share code, notes, and snippets.

@peterlee0127
Created July 17, 2012 16:48
Show Gist options
  • Save peterlee0127/3130541 to your computer and use it in GitHub Desktop.
Save peterlee0127/3130541 to your computer and use it in GitHub Desktop.
Clean Mac Caches
#! /bin/sh
sudo rm -rf /Users/$USER/Library/Logs
sudo rm -rf /Library/Caches
sudo rm -rf /Users/$USER/Library/Caches
sudo rm -rf /var/folders/*
sudo rm -rf /System/Library/Caches
echo "Clean Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment