拯救 macOS 的磁盘空间
Apr 30, 2017
首先, 不要买 128G! 不要买! 不要买!
先把 Homebrew 的缓存清掉.
brew cleanup -s |
然后压缩你的超大 Git repo.
git reflog expire --all --expire=now |
再去清理旧的 Chrome 版本.
cd /Applications/Google\ Chrome.app/Contents/Versions |
如果有 Xcode 的话.
cd ~/Library/Developer/Xcode/iOS\ DeviceSupport |
顺便去 Downloads 里面清除一下旧文件.
多多使用 ncdu
和 du -hsx *|gsort -rh|head -10
.
所以最佳办法还是换硬盘(不.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.