'du' and 'df' tools report different space utilization

(Doc ID 457444.1)

Last updated on MAY 27, 2018

Applies to:

Linux OS - Version Oracle Linux 4.4 and later
Linux x86-64
Linux x86


The 'du' (/usr/bin/du) and 'df' (/bin/df) command output displays conflicting space utilisation values, for example:

# df -k /
Filesystem    1k-blocks     Used  Available Use% Mounted on
/dev/sda6       9288792  8672768     144120 99% /

# du -xsh /
2.1G /

In the example above, 'df' reports 8.6 Gb to have been used on the root (/) filesystem, whereas 'du' reports only 2.1 Gb to have been used.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms