Gingercat1.png Welcome to...
GingerCat Software
We make software for the Web the Macintosh and linux
(among other things!) We hope you enjoy our site

Blog | New Site
I've been looking for this command for a while!

I've been doing a bit of command line interface work lately that involves moving directory's around and other such things.

I've been looking for this command for a while. It will allow you to see size of directory on the command line.

Also because of bandwidth constraints it is of often a lot easier to ssh around a few machines instead of using VNC clients(although this VNC client for the mac is well worth a look!).

this lovely bit of code is what I've been looking for


(gives size of all folders in a directory)

du -sh *
6.1G Desktop
456K Documents
2.1G Downloads
425M Library
24M Movies
271M Music
12M Pictures
2.7M Public
56K Request for information.pages
41M Sites
8.0K bin


Also

du -sh Documents/

which prints the size of a folder

456K Documents/


As the manual puts it this reports in "Human readable format"!

A great little bit of code for logs and other scripting jobs.

Oh yes I forgot to mention happy new Year!





© 2006 Steve Abrahall