Skip to content

Instantly share code, notes, and snippets.

@eiichi-worker
Last active June 18, 2018 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eiichi-worker/724a5f1f992977956382a5b9341f1478 to your computer and use it in GitHub Desktop.
Save eiichi-worker/724a5f1f992977956382a5b9341f1478 to your computer and use it in GitHub Desktop.
Linuxで容量食ってるディレクトリを探す

Linuxで容量食ってるディレクトリを探す

Tags: 空き容量確認, 大きいファイル

ルートから重そうなディレクトリを探す
GBに色がつく

sudo su
cd /
du -h | grep [0-9]G

参考 http://logic.moo.jp/data/archives/97.html

ディレクトリ内で容量で検索する

find ./ -type f -size +1024M  -exec ls -lah {} \;
@Youngseok-Oh-Plan-B
Copy link

これがええで。

du -sh * | sort -nr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment