__/ [jim.frantzen@xxxxxxxxx] on Sunday 15 January 2006 19:48 \__
> I have a reiserFS under Mandrake with a directory, full of sub
> directories, in total containing 15 million small image files (between
> 1k and 10k).
>
> How can I find the average file size?
Go to the parent directory
'du -sh' gives you the size of all files therein
'find . -type f | wc -l' gives you the total number of files
Divide the output of the first by the second
Hope it helps,
Roy
--
Roy S. Schestowitz | Have you hugged your penguin today?
http://Schestowitz.com | SuSE Linux | PGP-Key: 0x74572E8E
7:55pm up 36 days 3:06, 14 users, load average: 0.33, 0.76, 0.86
|
|