Tuesday, August 2, 2011

Working out disk usage on Linux

If you are running our of space on a linux box, then the following command will tell you 20 largest folders:

du -a /home | sort -n -r | head -n 20


A report of the overall disk space, for all the connected hard disks:


df

Very useful!

0 comments:

Post a Comment