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...
View ArticleFreeBSD: 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,...
View ArticleDisk 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...
View Article
More Pages to Explore .....