Difference between the commands 'df' and 'du'
hello all,
hope you are all doing good.
I tried these two commands: df and du
Both are giving different outputs.For example:
df -h gives the output as:
/dev/mapper/vg-lv1 42G(Size) 22G(Used) 18G(Avail) 56%(Use) /
whereas du -sh /root gives the output as:
6.0G /root
Why is it showing different sizes for the same partition and which of those commands is showing the exact size?
Thanks,
Anji
|