I was using Ubuntu 8.10 with ext3 as the file system type. The system performance was somewhat not up to the mark so I decided to install Ubuntu 9.10 with ext4 as the fs type. The overall system performance improved significantly after the installation.
For example: The HUGE folders in thunderbird are now opening much faster than with Ubunti 8.10 + ext3.
Till now i'm impressed with ext4 :)
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Wednesday, January 06, 2010
Wednesday, February 20, 2008
Average file size within a directory
To calculate the average file size within a directory on a Linux system, following command can be used:
ls -l | gawk '{sum += $5; n++;} END {print sum/n;}'
If you'd like to know the average size of some particular kind of files (like jpg files) then use the following:
ls -l *.jpg | gawk '{sum += $5; n++;} END {print sum/n;}'
ls -l | gawk '{sum += $5; n++;} END {print sum/n;}'
If you'd like to know the average size of some particular kind of files (like jpg files) then use the following:
ls -l *.jpg | gawk '{sum += $5; n++;} END {print sum/n;}'
Subscribe to:
Posts (Atom)