Why df and du show different output

Posted by Nischay on Ask Ubuntu See other posts from Ask Ubuntu or by Nischay
Published on 2012-10-31T04:42:18Z Indexed on 2012/10/31 5:21 UTC
Read the original article Hit count: 203

Filed under:
|

When I execute command df -h /tmp it says disk utilization is 100% but when it tried du -sh /tmp it says disk utilization is 2%.

I want to know why these commands shows different output and these two commands work and what is the solution of this problem. /var 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.

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about disk-usage