·

linuxでディレクトリの使用量を調べる

$ du --max-depth=1 -m /home/|sort -nr

–max-depthで1階層目までに絞って、-mでMB単位で表示。sort -nrで先頭数値評価の逆順ソート。