[GLLUG] Size of a directory

John Winters john at sinodun.org.uk
Tue Oct 30 16:27:23 UTC 2012


On 30/10/12 14:51, John G Walker wrote:
> I'm being told that I'm running out of disk space in my home directory.
> I don't believe this, but how do I check?
>
> I di know but I've forgotten,

cd ~
du -s * | sort -rn | head

will identify the space hogs quickly.

Although it doesn't seem to be relevant in this case, df -i can also 
sometimes explain surprising "disk full" errors.

John





More information about the GLLUG mailing list