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.
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
Post a Comment