Find the answer to your Linux question:
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.
  1. #1
    Linux Newbie
    Join Date
    May 2012
    Posts
    110

    Hard Disk Size in Linux ?


    Hi,

    I want to know the command to check the Hard Disk Size in LINUX ?


    Regards,
    Aparna.

  2. #2
    Just Joined!
    Join Date
    Feb 2012
    Posts
    1
    df -H for size of partion or use fdisk -l

  3. #3
    Linux Newbie
    Join Date
    Apr 2012
    Posts
    112
    I normally use
    Code:
    fdisk -l | grep GB

  4. #4
    Just Joined!
    Join Date
    Aug 2012
    Posts
    3
    i use df -h /$FolderName

  5. #5
    Just Joined!
    Join Date
    Sep 2012
    Location
    Dhaka
    Posts
    7
    I use the following command:

    fdisk -l

  6. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,392
    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!

  7. #7
    Just 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
    Code:
    parted /dev/sda print
    You can also use
    Code:
    fdisk -cul /dev/sda
    Don't forget to replace sda with your device name.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •