View Full Version : vdiskuse - to view folder size.
mbrando
06-11-2005, 04:46 PM
Hi,
Does Fedora or the VPS SSH have a command similar to vdiskuse. It helps to find out how much space is being used in each of the directories on the server so yo can track dow growing log files and such.
Mike
Robert
06-12-2005, 12:39 AM
Hi there,
Try something like:
du -h --max-depth=XX where XX is the number of levels down you want to see information about.
So for example... starting in your /home directory...
cd /home
du -h --max-depth=10
Would show you the space used by each folder under /home up to 10 levels deep.
If it's scrolling by too fast where you can't see the results, you can tell the command to write it to a file with:
du -h --max-depth=10 > results.txt
From there, you can read the text file at your leasure to see the space used.
Hope this is along the lines of what you're looking for.
mbrando
06-12-2005, 10:56 AM
Hi,
Thank you. Yes this helps.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.