| Thursday April 24th 2014

Feedburner

Subscribe by email:

We promise not to spam/sell you.


Search Amazon deals:

HOWTO: Find your top 10 directories eating up disk space


Baby TuxTo find the 10 largest (filesize-wise) folders in your current working path type:

du -cks * | sort -rn | head -10

or

du -x --block-size=1024K | sort -nr | head -10

and remember if you just want to know how much free space is available don’t forget the classic old df -h command:

root@server [~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md2 65G 49G 13G 80% /
/dev/md0 99M 47M 48M 50% /boot
/dev/sdc 2.2T 1.3T 924G 59% /raid/r0/p1
/dev/mapper/mpath1 4.8T 2.3T 2.5T 49% /raid/r2/p1
/dev/mapper/mpath2 4.1T 3.2T 959G 78% /raid/r2/p2
/dev/mapper/mpath3 4.1T 3.3T 904G 79% /raid/r2/p3
/dev/mapper/mpath4 4.8T 455G 4.4T 10% /raid/r1/p1
/dev/mapper/mpath5 4.1T 737G 3.4T 18% /raid/r1/p2
/dev/mapper/mpath6 4.1T 528K 4.1T 1% /raid/r1/p3

Related Posts: On this day...

Reader Feedback

One Response to “HOWTO: Find your top 10 directories eating up disk space”

  1. [...] – HOWTO: Find your top 10 directories eating up disk space saved by vbfischer2008-11-05 – Designing for WordPress: Complete Series & Downloads – [...]

Leave a Reply

You must be logged in to post a comment.