Utilize o seguinte comando:

cat /sys/class/thermal/thermal_zone0/temp
--saída: 54768

Para formatar a saída em graus Celsius, utilize o seguinte comando:

awk '{printf("%.1f °C\n",$1/1e3)}' /sys/class/thermal/thermal_zone0/temp
--saída: 54.8 °C