why df disk size bigger than du
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.
how to find file deleted but space not freed
lsof +L1|grep deleted