Help us understand the problem. What is going on with this article?

HDの容量確保をする方法「mac, ubuntu」

他にも削除できるものがあれば御連絡ください。

GUIで作業する

管理ボタン押下で容量食ってるファイルを探せる。必要ないのは消しておく。

スクリーンショット 2018-06-12 15.44.34.png

コマンドで容量の確認

df -h
sudo /usr/bin/du -g -x -d 5 / | awk '$1 >= 5{print}'

容量の確認(ubuntu)

sudo du -sb ./* | sort -n | numfmt --to=iec --suffix=B --padding=5

削除(ubuntu)

autoremove
http://qiita.com/inohiro/items/5d358c30eb7bacb37c7c

削除(mac)

いらないアプリを消す

https://freemacsoft.net/appcleaner/

一時ファイル削除

/private/var/tmp

homebrewのキャッシュクリア

brew cleanup

すごい。ずっとやってなかったので11GBも空いた。

...
Removing: /Users/miyamoto/Library/Logs/Homebrew/x264... (68B)
Removing: /Users/miyamoto/Library/Logs/Homebrew/xtensor... (68B)
Removing: /Users/miyamoto/Library/Logs/Homebrew/xvid... (68B)
Removing: /Users/miyamoto/Library/Logs/Homebrew/xz... (68B)
Removing: /Users/miyamoto/Library/Logs/Homebrew/zeromq... (68B)
==> This operation has freed approximately 11.4GB of disk space.

docker削除

dockerも容量を取りがち。

docker stop $(docker ps -q)
docker rm $(docker ps -q -a)
docker rmi $(docker images -q)

macのキャッシュ削除

sudo rm -dfR /System/Library/Caches/* /Library/Caches/* ~/Library/Caches/*
or
sudo rm -rf /System/Library/Caches/* /Library/Caches/* ~/Library/Caches/*

Adobeのキャッシュ削除

rm -rf ~/Library/Application\ Support

ハイパネーション機能データ削除

sudo rm /private/var/vm/sleepimage

iTunesの設定を変更して削減する方法

http://www.moreitfun.com/2015/04/04/how-to-delete-other-strage/

iphone appのデータ削除

http://kotonova.com/1963

xcodeデータ削除

http://qiita.com/hirayaCM/items/14dc021d4b27bdbfbb3d

~/Library/Developer/Xcode/Archives
~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Xcode/iOS DeviceSupport/
~/Library/Application Support/iPhone Simulator
~/Library/Logs
~/Library/Developer/CoreSimulator/Devices

https://apple.stackexchange.com/questions/272929/is-it-safe-to-delete-the-content-of-library-logs

docker

https://qiita.com/junkjunctions/items/ad971fd84fb8c30816d6

rm -rf ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2

imovieデータ削除

http://tipstour.net/delete-imovie-temp-files

その他

http://qiita.com/sea_mountain/items/b9a6af33bd50f0e344ef


macのメモリの解放

sudo purge

参考

https://qiita.com/akameco/items/9e5026e892661b75e7b3

miyamotok0105
C#->Python, Swift->PHP Laravel, Vuejs, AWS->? ITが好き。日本の技術を世界レベルへ。 最近はあまり記事書くのに時間が取れずに、エラー解消ポエムを呟いてる。
https://www.wantedly.com/companies/company_788076?ql=gaJpZM4Aq7PI&fbclid=IwAR3l-mt7gbT5lDekWHNLakUUy7Zkn17Gz7HgydVuMnCEC2F8--5h12K6xYA
gibjapan
受託・人材サービス・教育・コンサルなど多岐に渡り幅広く活動している会社です。
https://www.gibjapan.org
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした