I have problem with file system size mismatch from 2 different linux commands
du -h shows only 250 MB used
df -h shows 9.5 GB used
Why is the different between commands ?
I have problem with file system size mismatch from 2 different linux commands
du -h shows only 250 MB used
df -h shows 9.5 GB used
Why is the different between commands ?
du -h
only shows the amount used under the current directory, while df -h
shows all the usage for the whole filesystem.
du -h
will show information on the directory from which you ran the command.df -h
will show information on full disk partitions. – user4556274 Sep 08 '16 at 07:59