3
6

More than 5 years have passed since last update.

Macの容量(ストレージ)を30GB取り戻した。

Last updated at Posted at 2018-08-08

効果(削除できた量)が高かった方法から順に

1. ディレクトリの容量を出力してデカいファイルを見つけ削除する

シンプルに。

$ sudo du -sh /*

121M    /Adobe
  0B    /AdobeGCClient
9.6G    /Applications
8.1G    /Library
  0B    /Network
8.0K    /SLStore
9.1G    /System
 36G    /Users
 36M    /Volumes
2.6M    /bin
  0B    /cores
4.8M    /data
4.5K    /dev
  0B    /etc
1.0K    /home
4.0K    /installer.failurerequests
501M    /macOS Install Data
1.0K    /net
381M    /opt
4.7G    /private
1.1M    /sbin
  0B    /tmp
 25G    /usr
  0B    /var

.
.
.


$ sudo du -sh /usr/local/var/*

  0B    /usr/local/var/db
4.5M    /usr/local/var/elasticsearch
  0B    /usr/local/var/homebrew
8.0K    /usr/local/var/lib
 12K    /usr/local/var/log
  0B    /usr/local/var/mongodb
203M    /usr/local/var/mysql
 19G    /usr/local/var/postgres
408K    /usr/local/var/run

postgresが19GBもある笑!最近は全く使ってないので不要なものを削除

その他のディレクトリも掃除したら25GB近く回復した。

2. spotlightのインデックスを再生成する

意外にも5GBぐらい取り戻した。

3
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6