If I type:

df -h

enter image description here

It shows me 12G used.

But If I use this command:

du -h -x / | sort -hr >> /home/log_size.txt

This will give me:

enter image description here

If I sum /usr + /var + /root, this won't give me about 12G used... So where can I find the other files that are used in the 12G?

1 Answer 1


I found the solution myself.

Firstly type this command:

lsof -n | grep deleted

Are you getting any output? If you are, then find what program uses those open files and restart the related services.

In fact find processes that have used "deleted files", then restart all processes, in my case it was nginx.

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.