PDA

View Full Version : CNC, disk usage - any way to see folder sizes?


Binky
09-03-2002, 02:38 AM
I'm getting close to max. allowable storage on one of my domains. I'd like to see what I can get rid of to free up space. There are many directories and subdirectories and I have to go into each one to see individual file sizes. Is there a way to see the size of folders so that I know where to look for large files I may be able to reduce or delete?

Arthur
09-03-2002, 03:21 AM
There is an easy way to do this, by logging into your account with SSH/telnet;
cd ..
du -h --exclude=stats --exclude=logs_web

This will give you a list of all directories and sub-directories with their sizes.

Binky
09-03-2002, 03:42 AM
Excellent. Thanks, Arthur.

Joe
01-20-2003, 09:44 AM
I know this is an old thread, but ... are there any plans to bring this function to the CNC? It would be great just to see the size of the folders when logged into the CNC. I know there are some bigger fish being fried in the pan just now, but if this could be put on a future TO DO list, it would improve an already-great CNC.

Joe

Terra
01-20-2003, 10:03 AM
The main reason it is not there is performance...

Each reload or movement you make, the 'du' must be scanned and recalculated on the fly... I'm afraid this would generate unacceptable overhead and delays, to an already speedy FileManager...

--
Terra
--looking at the big picture--
FutureQuest

Joe
01-20-2003, 10:32 AM
Thanks for the reply Terra. There usually is a good reason here why something that looks simple isn't already implemented.

Joe