LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 09-27-2007, 04:48 PM   #1
mpmackenna
Member
 
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
uselpa
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
mpmackenna
Member
 
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
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,445

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


Reply


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 11:21 AM.

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