Visit the LQ Articles and Editorials section
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, 04: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, 04: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, 05: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, 05:56 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,660

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

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