Originally posted by: nagger
This depends on what you really want:
wc is a dangerous tool as it will count the bytes in files.
But the files are actually larger than the result from wc.
A file with one byte takes up 4 KB of disk space as it requires a whole disk block.
If you and 1000's of time files the difference between wc results and the actual disk use can be huge.
I recommend: du -ks
Directory-Name This will tell you the size including the wastage in KB's including the directory structures. This is the amount of space free you have to have to copy the directories and files to a different place. I suspect this is what you really want.
hope this helps, N
#AIX-Forum