特定のディレクトリのディスク使用量を非再帰的に表示するコマンドは何ですか?

特定のディレクトリのディスク使用量を非再帰的に表示するコマンドは何ですか?

サブディレクトリ (およびその内容) を除いて、ディレクトリの内容が使用しているディスク容量を表示できますか? 表示できる場合、どのようなコマンドがありますか? よろしくお願いします。

答え1

抜粋du --help

-h, --human-readable  print sizes in human readable format (e.g., 1K 234M 2G)
-S, --separate-dirs   do not include size of subdirectories
-s, --summarize       display only a total for each argument

ランニング:

du -Shs /path/to/dir

あなたが望むものを与えるはずです。

関連情報