The filesystem Usage Measured by "df" and "du" Commands Could Differ
Last updated on MARCH 30, 2015
Applies to:Linux OS - Version Oracle Linux 5.5 and later
In normal situation, the total size of the files under root filesystem, used by "du" command, should be approximately equal or close to the usage of the same filesystem observed by "df" command.
However, in some situation, the amount of filesystem usage seen by "df" command shows much larger than the total file size measured by "du" command.
Here's the example. "df" command shows that the root filesystem on block device (/dev/mapper/VGExadb-LVDbSys1) occupies 27GB of disk space, while "du" command shows total file sizes are only 7.5GB:
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