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
df -hcommand will list the disks mounted, their mount point, size, used and available space.
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