Ravi Sir's Cards › AWS
df vs du
This comparison card contrasts df and du. df is described as space per filesystem. du is described as space per folder. The card pairs df with which disk, and du with which folder.
Read card text
What this card says
Shows
df
Space per filesystem.
du
Space per folder.
Key points
Counts deleted-open files.
Sees only existing files.
Example
df -h
Use when
Which disk.
Which folder.