df and du show different results

The values shown by df and du can be different and in some cases the sizes may vary by a large amount.

df works with the file system, where as du works with the files.

When the OS processes are working with files, the files' contents are dynamically changing. The actual file size might change, but the meta information of the file (inode) will remain until the process is done with the file. The df command looks at information of the inode. du looks at the information of the actual file.

Comments

Popular posts from this blog

OS/DB Migration - CMD. STR, TOC, EXT, R3load, DDLDBS.TPL and more

Fixing Inconsistent Table - Table activation fails due to inconsistency between DD and DB

301 Redirect Using SAP Web Dispatcher