Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-02-2003, 10:52 PM
|
#1
|
Member
Registered: Jul 2003
Location: Lakewood, CO
Distribution: SuSE 8.2
Posts: 41
Rep:
|
Total Hard Disk Usage
Hi all,
Got another question for you. I am looking for some utility to find the total disk usage of all the partitions. I know that df will display them independently, but I am looking for something that will give me one lump sum. Thanks,
|
|
|
09-02-2003, 10:57 PM
|
#2
|
Member
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825
Rep:
|
try
du -hs /
h for human readable, s to avoid printing subdirectories
|
|
|
09-02-2003, 10:59 PM
|
#3
|
Member
Registered: Jul 2003
Location: Lakewood, CO
Distribution: SuSE 8.2
Posts: 41
Original Poster
Rep:
|
I have already tried that, the problem is I am trying to do it on a huge raid array with like 8 disks, and I do not have permission in all the directories. Also, it takes forever.
Thanks,
|
|
|
09-03-2003, 09:38 AM
|
#4
|
Member
Registered: Apr 2003
Location: Athens, Greece
Distribution: Arch
Posts: 182
Rep:
|
df -h (where h is human again)
|
|
|
09-03-2003, 09:43 AM
|
#5
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
# How much free/used drive space
df -h
# Show disk usage by current directory and all subdirectories
du | less
# What takes up so much space on your box
# Run from the directory in question and the largest chunk shows up last
find $1 -type d | xargs du -sm | sort -g
|
|
|
All times are GMT -5. The time now is 07:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|