[plug] Console command to get size of a dir

Russell Keith-Magee Russell.Magee at calytrix.com
Mon Apr 22 08:04:23 WST 2002


> I feel a bit silly asking this, but I can't find a command that
> gives me the
> total size of a directory (including of all files/sub dir's),
> could anyone
> help?

Try du (disk usage).

e.g., du -h will give the "human readable" size of all directories; the very
last line it prints yields the total space taken up by the current
directory, and all subdirs.

Russ %-)

********************************************
Russell Keith-Magee
Software Engineer
Calytrix Technologies
Unit 9, EIR Building, Technology Park
PO Box 1173, BENTLEY 6982, Western Australia

Tel: +61 8 9362 5300
Fax: +61 8 9362 5400
Mobile: 0408 928 379



More information about the plug mailing list