Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Find the size of sub dirs

by spaz (Pilgrim)
on Feb 10, 2001 at 05:30 UTC ( [id://57545]=note: print w/replies, xml ) Need Help??


in reply to Find the size of sub dirs

On the off-chance that you're on a UNIX based system...
du -ks * will give a list of all directores (including .) and their size in K (thus -k). If you have the GNU version of du(1), you can s/-k/-h/ to get Human readable output.

Then again you're probably in a Win environment, aren't you?

-- Dave

Replies are listed 'Best First'.
Re: Find the size of sub dirs
by roXet (Initiate) on Feb 10, 2001 at 05:42 UTC
    Yeah, this will be run on a windows box. The network admin here wants to be able to check the size of web folders to make people aren't going over the allowed limit. This came up when we were talking about C++ programming, but I told him I could do it in Perl, but I considered trying to compile the 'du' source on my windows box.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://57545]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found