0
votes
3answers
169 views

How to find largest files in a dir - ignoring directory sizes

I want to do something like this du -a | sort -rn | head But I want to extract files only, ignoring directories. To be clear, I want to traverse through all sub-directories but I don't want to ...
4
votes
2answers
1k views

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 ...
16
votes
4answers
4k views

What is the difference between du -h and ls -lh?

I am having a difficult time grasping what is the correct way to read the size of the files since each command gives you varying results. I also came across a post at ...