0

Difference between du and df commands

I need to check the disk space remaining and the used. Both these df and du commands can be used. What is the difference.??

du command df command Add a comment
aiden
asked Feb 14 2017

Answer

0

you use du in a specific directory exp: /root/etc/ du -h

                                                           temp 4kb
                                                           work 300G
so start with df -h to figure out where you issue is.
then du - sh to figure out which specific file is causing your system to crash or etc.
Add a comment
Dreday4290
asked Feb 14 2017
edited Oct 05 2018
Post your Answer