LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 03: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, 03:51 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
try `df -h`.
 
Old 09-27-2007, 04: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, 04:56 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration