November 28, 2008

Display the TOTAL harddisk size in linux


Use fdisk to do the trick:

fdisk -l | grep Disk

The output will be something like the following:

Disk /dev/sda: 10.7 GB, 10737418240 bytes
Disk /dev/sdb: 53.6 GB, 53687091200 bytes


bash, fdisk, Harddisk, Linux, resize, Snippets

You may also like

Leave a Reply

Your email address will not be published. Required fields are marked

Information about Data protection

This site uses Akismet to reduce spam. Learn how your comment data is processed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}