Results 1 to 5 of 5
  1. #1

    Determine HDD size on Linux

    Hello everyone,

    Will someone tell me how to determine the total HDD size on a linux machine from the command prompt? Also, how do I determine the amount of free space on the drive?

    Thank you in advance.

  2. #2
    Use the "df" command.

    It'll list all the partitions and will give you their sizes and how much space is used/available.

    I hope this helps.

    ---=== Admin ===---
    Linux Cloud Hosting -
    Linux VPS Hosting -
    High Quality Linux virtual servers with lots of Guaranteed RAM and HDD space, Impeccable Service.

  3. #3
    Join Date
    Mar 2001
    fdisk -l (lower case L)

    will also provide you with HD size info, including unmounted or unpartitioned drives.

  4. #4
    Better still, use "df -h" option it will lists the mounted disks in mb size, used, available, capacity, mounted on, .... and if you want to see other options for "df" just type "df --help" (2dashes and help)
    and it will lists all the options available for df command.

  5. #5

    Smile Thank you

    Thank you everyone for offering those tips. I really appreciate it.

Posting Permissions

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