Difference between the commands 'df' and 'du'
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:
Why is it showing different sizes for the same partition and which of those commands is showing the exact size?