HowTo Check Directory Size using DU Command

root@dc2 [~]# du -h /backup
236M	/backup/2013-08-26/accounts
112M	/backup/2013-08-26/system/dirs
96K	/backup/2013-08-26/system/files
112M	/backup/2013-08-26/system
347M	/backup/2013-08-26
24K	/backup/_gsdata_
347M	/backup
root@dc2 [~]# du -sh /backup
347M	/backup
root@dc2 [~]# du -hs * | sort -hr
856M    lib
746M    share
612M    lib64
312M    src
267M    java
239M    bin
179M    sbin
173M    local
93M     i686-w64-mingw32
72M     libexec
26M     include
20M     puppet
772K    X11R6
20K     man
4.0K    games
4.0K    etc
0       tm

Leave a Reply

Your email address will not be published. Required fields are marked *