LoginSignup
4

More than 5 years have passed since last update.

ファイルサイズをディレクトリ(フォルダ)単位でみたいとき

Posted at

HDDが心もとない自宅サーバーでどいつが容量食ってるかよく調べるので。
du -hx --max-depth=1 <パス名>
例)
[root@hoge]du -hx --max-depth=1 /home/vpopmail/domains/
72K /home/vpopmail/domains/hoge1.com
2.7M /home/vpopmail/domains/hoge2.com
26M /home/vpopmail/domains/hoge3.com
28M /home/vpopmail/domains/

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
4