6

I'm trying to run du -ch on multiple directories, but I only apart it only shows the total size of all files (I don't want each individual file, then the total at the end which is what -cdoes).

hek2mgl
  • 152,036
  • 28
  • 249
  • 266

2 Answers2

4

To resolve this issue, run the following command as parameter passing directories.

du -hs
Roknauta
  • 178
  • 10
1

Some ideas:

$ du -sh .
$ du -chs *
$ du -chs * | tail -1
DigitalRoss
  • 143,651
  • 25
  • 248
  • 329