Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-02-2003, 11:52 PM   #1
Registered: Jul 2003
Location: Lakewood, CO
Distribution: SuSE 8.2
Posts: 41

Rep: Reputation: 15
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,
Old 09-02-2003, 11:57 PM   #2
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33

du -hs /

h for human readable, s to avoid printing subdirectories
Old 09-02-2003, 11:59 PM   #3
Registered: Jul 2003
Location: Lakewood, CO
Distribution: SuSE 8.2
Posts: 41

Original Poster
Rep: Reputation: 15
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.

Old 09-03-2003, 10:38 AM   #4
Registered: Apr 2003
Location: Athens, Greece
Distribution: Arch
Posts: 182

Rep: Reputation: 30
df -h (where h is human again)
Old 09-03-2003, 10:43 AM   #5
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# 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
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
total bandwidth usage chongluo Linux - General 9 09-26-2004 09:32 PM
Tracking Total Bandwidth Usage for Month Chibo *BSD 3 08-08-2004 02:56 AM
Calculating total %cpu usage from /proc/stat gaijin Programming 1 07-07-2004 03:45 AM
Hard disk usage... plisken Linux - General 7 01-31-2003 04:17 AM
Limiting the total amount of memory usage by apache. Linux - General 8 08-30-2002 10:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration