首先, 不要买 128G! 不要买! 不要买!

先把 Homebrew 的缓存清掉.

brew cleanup -s

然后压缩你的超大 Git repo.

git reflog expire --all --expire=now
git gc --prune=now --aggressive

再去清理旧的 Chrome 版本.

cd /Applications/Google\ Chrome.app/Contents/Versions
# 把除了最新版的都删了
rm -rf 29.0.1547

如果有 Xcode 的话.

cd ~/Library/Developer/Xcode/iOS\ DeviceSupport
# 删掉你不需要 iOS 版本
rm -rf 10.3.1\ \(14E304\)
rm -rf ~/Library/Developer/Xcode/DerivedData/*

顺便去 Downloads 里面清除一下旧文件.

多多使用 ncdudu -hsx *|gsort -rh|head -10.

所以最佳办法还是换硬盘(不.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.