It looks like you're new here. If you want to get involved, click one of these buttons!
Any commands for this or how can see it?
Dedicated server? smartctl -a /dev/sda
Value: 1 = Hard Drive, Value: 0 = SSD
That said I've seen VMs saying 1 when the host indeed use SSDs. It's a bit tricky with virtualization.
There is also
lsblk -d -o name,rota
Same as above applies "Value: 1 = Hard Drive, Value: 0 = SSD" because it is actually just reading the file from the first method.
You can try smartctl:
smartctl -a /dev/xxx
Look for something like "Rotation Rate: Solid State Device"
I'm on vacation in Belize.