'du' and 'df' tools report different space utilization (Doc ID 457444.1)

Last updated on APRIL 05, 2017

Applies to:

Linux OS - Version Oracle Linux 4.4 and later
Linux x86-64
Linux x86
Linux Kernel - Version: 4.4 to 5.3


Symptoms

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.

Cause

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