How can I know in the linux terminal how many physical disks a server has installed?

i need get how many physical disks have my server. I tried fdisk -l but I do not get the full features of the disk

2 answers

  • answered 2018-08-09 00:30 Chibuzo

    df -h command will list the disks mounted, their mount point, size, used and available space.

  • answered 2018-08-09 06:48 Vikas Deore

    If you really want to display only the hardware, and not RAID volumes and partitions that might be seen by the OS as physical drives. You can try lshw

    lshw -class disk -short