LoginSignup
2
2

More than 5 years have passed since last update.

ディレクトリ単位でディスクの使用量をまとめる

Posted at

調査に使った奴をとりあえず置いておく用。

$ du --max-depth=1 /path/to

これで、各ディレクトリごとの使用量がファイルサイズ(kB)<tab>パスという形式で出力される。
ちなみに、これだとdepth=0となる全体の使用量も出てちょっと邪魔だけど、今のところはとりあえず無視

2
2
0

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
2
2