LoginSignup
3
2

More than 5 years have passed since last update.

duでカレントディレクトリ以下の使用容量をパッと見たいとき用のコマンド 隠しファイルも

Last updated at Posted at 2019-04-18

コマンド

これ使っておけば大体OK
tmp.txtが元からあった場合、壊すので注意

 du -scmh ./* ./.[^.]* | tee tmp.txt; echo "\n------------result-----------\n"; sort -rh tmp.txt ; rm tmp.txt

隠しファイルとかは出さなくていい場合

du -scmh ./* | sort -rh

隠しファイルだけ見たい場合

du -scmh ./.[^.]* | sort -rh
3
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
3
2