Skip to content

Instantly share code, notes, and snippets.

@nikhilbansal
nikhilbansal / du-df-mismatch.txt
Last active April 28, 2017 08:10
Linux df and du mismatching
The df -h on the partition /data was showing full usage of 20GB but du -sh /data was showing a usage of only 581MB.
ubuntu@ip-xxx-xx-x-xx:/data$ df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/xvdb 20G 20G 0G 100% /data
ubuntu@ip-xxx-xx-x-xx:/data$ du -sh .
581M .