It is also possible that /tmp isn’t the only thing on the partition it resides on, for instance if it is just a directory entry under root. (In my case df says 16G used, and du 2.0M)
But according to my testing, reason 2 isn’t true, du will report the exact same amount, no matter what is ‘hidden’ under a mount point somewhere in the directory.
It is also possible that /tmp isn’t the only thing on the partition it resides on, for instance if it is just a directory entry under root. (In my case df says 16G used, and du 2.0M)
But according to my testing, reason 2 isn’t true, du will report the exact same amount, no matter what is ‘hidden’ under a mount point somewhere in the directory.