in reply to Re: Unix size again
in thread Unix size
Your solution counts files multiple times if there are multiple links to a file. OTOH, you are not counting the size of directories themselves. (Even an empty directory has typically a size of 4096 bytes).
du takes care of both things.
|
|---|