Hi all ;
Does anyone know of a tool that I can use to analyse how
much disk space
a specific directory ( not filesystem ) is using ? in
otherwords , something that can
allow me to conduct an in-depth analysis of a directory
tree , how much space in Mb
that tree is using , how many files it has and how large
those specific files are ?
I am trying to develop a solution to this problem in the
form of a shell script , but this
is proving painful , because the 'h' option to the ls
command does not consistently
use the same unit of measurement for sizing ratio reasons.
Some of the files are only
a few bytes in size , but there are millions of them , and
so by adding up the numbers
using 'expr' , I end up with a number in exponential form
rather than the command being
smart enough to convert the figure into a higher-level
unit of measurement.
Regards , Jason
|