2

I was reading this answer that suggested df -h for checking disc space. But in the comments, another user suggested df -h --total and at this time has 93 upvotes. I tried both df -h and df -h --total and the output is the same on my device.

I used men to see what --total does and this came out. I don't quite understand it either. a little elaboration would be appreciated.

elide all entries insignificant to available space, and produce a grand total

Peyman
  • 208

1 Answers1

3

df -h --total Will print a total sum(of the file systems) at the end like:

Filesystem      Size  Used Avail Use% Mounted on
total           930G  215G  669G  25% -

While df -h wont. Other than that, they are the same.

Raffa
  • 32,237