coffin
09-10-2002, 04:46 PM
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.
RoseHosting
09-10-2002, 04:52 PM
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
RoseHosting.com
RutRow
09-10-2002, 06:58 PM
fdisk -l (lower case L)
will also provide you with HD size info, including unmounted or unpartitioned drives.
cactus
09-10-2002, 08:52 PM
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.
coffin
09-12-2002, 10:51 AM
Thank you everyone for offering those tips. I really appreciate it.