Results 1 to 10 of 10
This is on RHEL 4 in case it makes a difference.
The directories I am trying to size have a huge number of sub-directories and files and I am finding ...
- 08-26-2009 #1
Trying to get the size of some directories.
This is on RHEL 4 in case it makes a difference.
The directories I am trying to size have a huge number of sub-directories and files and I am finding the usingis taking a hellishly long time. I am in my early forties and need these figures before I retire. (Not sure if I'm joking)Code:du -sh /path/to/dir
Is there a faster way to get the size of a directory?
ThanksIf we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 08-26-2009 #2
Just wondering if ya made a type oh with
and instead you are actually typing indu -hswhich is the only command I know elija for getting directory and sub files size in advance by the way.du -shLinux Registered User # 475019
Lead,Follow, or get the heck out of the way
AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
Open CourseWare for Linux Geeks
- 08-26-2009 #3
I wonder if Redhat has a Disk Usage Analyser tool Like they have in Ubuntu? It pulls up Directory Sizes up pretty quick.
Linux Registered User # 475019
Lead,Follow, or get the heck out of the way
AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
Open CourseWare for Linux Geeks
- 08-26-2009 #4
Thanks. Edited original post.
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 08-27-2009 #5Just Joined!
- Join Date
- Aug 2009
- Posts
- 9
Hi,
Redhat has a disk usage analyzer tool. U can get that tool by using a command called baobab or Application->System tools-> Disk usage Analyzer
- 08-27-2009 #6
Is that a graphical tool?
This has to be done via ssh terminal only and there will tens of thousands of sub directories to process so I imagine it is always going to take a little while.
I gave up and Ctrl + C'd after 1/2 hour yesterday do you think I was being impatient?If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 08-27-2009 #7
yes,elija it's GUI. http://en.wikipedia.org/wiki/Baobab_(software)Is that a graphical tool?
File:Baobab screenshot.png - Wikipedia, the free encyclopedia
Scanning using command line (du -ksh ) sure to take time....Even above GUI will take some time ....
What's your disk size ?- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 08-27-2009 #8
I think half an hour is a little bit impatient. If you have a huge number of subdirectories then it's going to take time to count the used space.
Can you get an estimate using 'df'? You might be able to speed it up with the 'nice' command, but it's still going to be limited by the physical i/o speed of the disk.Linux user #126863 - see http://linuxcounter.net/
- 08-27-2009 #9
Roxoff is correct,using nice is the best option to speed up the operation.
If you think RAM is small - create a swap or increase swap size ..might be useful for you.- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 08-27-2009 #10
I'm just trying to get an idea of how backup space we need to buy so I might have to leave it running
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.


Reply With Quote
