Browsing articles tagged with "du - Admins Goodies"
Apr 16, 2012
tom

Disk space usage doesn’t add up with df & du

I’m trying to free up some disk space – if I do a df -h, I have a filesystem called /dev/mapper/vg00-var which says its 4G, 3.8G used, 205M left. That corresponds to my /var directory. If I descend into /var and do du -kscxh *, the total is 2.1G 2.1G + 200M free = 2.3G… So my question is, where is the remaining 1.7G ? Asked by Codecraft You probably have some deleted big log […]

Continue Reading »
Feb 21, 2012
tom

FreeBSD: How to know real file size on zfs with compression on?

I’m using zfs on my FreeBSD 9.0 x64 and pretty happy with it, but I find it hard to count directory real, not compressed, size. Surely I can walk over the directory and count every file size with ls, but I’d expect some extra key for du for that purpose. So, how can I tell the directory size for dir placed on zfs with compression on? Thamk you in advance for the advice, I simple […]

Continue Reading »
Aug 31, 2011
tom

How to do “du” on all files under a directory in linux?

This is what I tried: [demo@ ~]# ll /usr/local/apache2/logs/|xargs |du -hm – du: cannot access `-’: No such file or directory I want to see the amount of space each file occupies in m unit. How to do it the correct way? I’m assuming ll is an alias for ls -l, in which case what’s wrong with du -hm /usr/local/apache2/logs/* Check more discussion of this question. Bookmark on Delicious Digg this post Recommend on Facebook […]

Continue Reading »