What Is the Difference Between Du and Df in Unix?
Contents the (Very Complicated) Answer Can Be Best Summarized Like This: the Df Command Provides a Sweeping Ballpark Figure for How Much Space Is Being...
The (very complicated) answer can be best summarized like this: The df command provides a sweeping ballpark figure for how much space is being utilized on your filesystem as a whole. The du command is a much more accurate snapshot of a given directory or subdirectory.
Why is DF and Du different?
Answer. du is used to estimate file space usage—space used under a particular directory or files on a file system. df is used to display the amount of available disk space for file systems on which the invoking user has appropriate read access.
Must Read
What is the difference between DF and du commands in Linux?
DF(disk free) looks at disk used blocks directly in filesystem metadata. … DU(disk usage) is used more than df in day to day project as it shows the disk usage as per directory level. Basically, df reads the superblock only and trusts it completely.