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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
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: Boulder, CO
Distribution: Slackware, RHEL, CentOS
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
|
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:40 AM.
|
|
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
|
|