My Oracle Support Banner

Sparse Files Observed Disk Usage Difference With "du" And "ls" Commands (Doc ID 2305761.1)

Last updated on MARCH 24, 2023

Applies to:

Linux OS - Version Oracle Linux 5.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86

Goal

Observed disk usage difference with du and ls commands

We can see the "ls" command displays the file size to be 1.1GB where as "du" command file size to be only 515MB. 

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.