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-27-2007, 03:48 PM   #1
Registered: May 2006
Posts: 69

Rep: Reputation: 15
View hard disk size command

Is there a command in Linux that will show me the available space on a hard disk partition. I have used du to view disk usage, but that doesn't tell me how much space is left. How can I tell if /dev/hda1 is a 20GB partition or a 50GB partition from the command line interface? Any help is greatly appreciated. Mike
Old 09-27-2007, 03:51 PM   #2
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
try `df -h`.
Old 09-27-2007, 04:09 PM   #3
Registered: May 2006
Posts: 69

Original Poster
Rep: Reputation: 15
Perfect!! Thanks so much for the quick and accurate response. I have been looking all over for that one. Mike
Old 09-27-2007, 04:56 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,146

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
And for nicety I generally tack on a "T" - as in "du -hT".


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
Installed Size on Hard Disk BuilderQ Linux - Distributions 1 09-11-2007 06:22 PM
hard disk size discrepancy rattlesocks Linux - Software 2 05-05-2007 08:38 AM
How to view win98 files on hard disk alb1954 Feather 3 09-02-2004 01:08 PM
Hard Disk Size problem ricardo_ok Slackware 10 07-20-2004 06:20 PM
Problem with hard disk size sramaswamy Linux - Hardware 1 12-04-2002 12:12 PM

All times are GMT -5. The time now is 02:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration