why df disk size bigger than du

Published: 01 Dec 2023 Category:

why df disk size bigger than du

keywords

  • block size
  • application stop

df uses total allocated blocks, while du only looks at files themselves, excluding metadata such as inodes, which still require blocks on the disk. Additionally, if a file is deleted while an application has it opened, du will report it as free space but df does not until the application exits.

see stackexchange

how to find file deleted but space not freed

lsof +L1|grep deleted