Results 1 to 7 of 7
Hi,
I want to know the command to check the Hard Disk Size in LINUX ?
Regards,
Aparna....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-31-2012 #1Linux Newbie
- Join Date
- May 2012
- Posts
- 108
Hard Disk Size in Linux ?
Hi,
I want to know the command to check the Hard Disk Size in LINUX ?
Regards,
Aparna.
- 08-31-2012 #2Just Joined!
- Join Date
- Feb 2012
- Posts
- 1
df -H for size of partion or use fdisk -l
- 08-31-2012 #3Linux Newbie
- Join Date
- Apr 2012
- Posts
- 112
I normally use
Code:fdisk -l | grep GB
- 09-05-2012 #4Just Joined!
- Join Date
- Aug 2012
- Posts
- 3
i use df -h /$FolderName
- 09-06-2012 #5Just Joined!
- Join Date
- Sep 2012
- Location
- Dhaka
- Posts
- 7
I use the following command:
fdisk -l
- 09-07-2012 #6Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,152
All of these are good answers, but the REAL question is whether you want the raw disc size (use fdisk -l for that), file system size (df will show you that), or what?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 09-24-2012 #7Just Joined!
- Join Date
- Sep 2012
- Posts
- 5
First use the df command to know the the name of your device. Then use the below command
You can also useCode:parted /dev/sda print
Don't forget to replace sda with your device name.Code:fdisk -cul /dev/sda


Reply With Quote
