Display the TOTAL harddisk size in linux
This post is part of the archive. It was written years ago, so some of the tools, versions and links may be outdated.
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