0

I use df -h find 17G used. However I use ncdu / to find which directory holding disk usage, show me only 5.5G used. What's wrong with this?

df -h screenshot:

"df -h" screenshot

ncdu / screenshot:

"ncdu /" screenshot

[Edit 2016.09.05]

It is resolved. I should use 'sudo ncdu /', then I found the usage is match for df -h usage.

0

This should work

In a terminal type:

 sudo du -BM -s /*

This will give a summary of disk usage in each directory and file in the root directory, in megabytes.

You need sudo because you want to read all the files.

There is also a man page for du.

1
  • It is resolved. Inspired by your command . I should use 'sudo ncdu /', then i found the usage is match to df -h usage. Thank you. – Basten Gao Sep 5 '16 at 2:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.