On Sun, 4 Jan 2004 [EMAIL PROTECTED] wrote:
I'm running out of web space and want to write a script that tell me the size
of certain directories so I can see where the hog is.
Can anyone give me some quick code?
A shell script might be even faster with du -s /tmp | sort -n
Rus
--
e:
Tim == Tim Johnson [EMAIL PROTECTED] writes:
Tim find(sub{ -f and ( $size += -s ) }, $dir );
Beware that -s has only a rough correlation with the actual disk a
file takes. You want (stat)[12] for that. The -s number will be far
too huge for holey files (blocks aren't allocated), and a little
I'm running out of web space and want to write a script that tell me the size
of certain directories so I can see where the hog is.
Can anyone give me some quick code?
: Getting the total size of a directory
I'm running out of web space and want to write a script that tell me the size
of certain directories so I can see where the hog is.
Can anyone give me some quick code?
:
Subject: Getting the total size of a directory
I'm running out of web space and want to write a script that tell me the size
of certain directories so I can see where the hog is.
Can anyone give me some quick code?