How to know the hd/ssd temperature on Linux

Install hddtemp:
~$ apt install hddtem

pExecute the command to have information on all disks
:~$ for i in /dev/[a-z]sd; sudo hddtemp "$i"; done