Forums

Can't figure out what is taking up so much space

I've reached my disk quota and am not quite sure what is taking up so much space. When I run:

du -hs /tmp ~/.[!.]* ~/* /var/www/

I see a folder taking up 982M, the culprit. However, when I cd to that exact path and run:

ls -la

The space the files are taking up do not add up to 982M. I'm a little confused on what to delete as I've already deleted my /tmp folder.

Run

du -hs ./.[!.]* *

in the directory

Thanks, but it points to the same folder unfortunately (982M)...

Run the command Glenn suggested inside the culprit directory. I'd add also a sort for readability. So, once you have the output of du -hs /tmp ~/.[!.]* ~/* /var/www/, you do cd <the-culprit-dir>, and then:

du -hs ./.[!.]* * | sort -h

Thank you so much!

Thank you so much!