0

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 ?

Nidal
  • 8,856
  • 11
  • 55
  • 74
sathya
  • 11
  • see [How to remember the difference between du and df?](http://unix.stackexchange.com/questions/41863/how-to-remember-the-difference-between-du-and-df) – Rahul Sep 08 '16 at 07:58
  • `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

1 Answers1

2

du -h only shows the amount used under the current directory, while df -h shows all the usage for the whole filesystem.

Charles Stewart
  • 502
  • 1
  • 5
  • 18