When I execute the command df -h /tmp
it says disk utilization is 100%, but when it try du -sh /tmp
it says disk utilization is 2%.
I want to know why these commands shows different output, how these two commands work and what is the solution to this problem.
Context: /tmp
is installed on it own file system. I am using Ubuntu 12.04 server edition on my VPS account. Due to this problem utilization of /tmp
100% according to df
some programs complain about free space in /tmp
.