How to find out Raspberry Pi GPU and ARM CPU temperature on Linux

Originally published at: https://www.cyberciti.biz/faq/linux-find-out-raspberry-pi-gpu-and-arm-cpu-temperature-command/

I am using a Raspberry PI 2/3 credit size computer. How do I find out my GPU or ARM CPU temperature from Linux operating system command line option?

I am having “sensors” alias like this. i am having following line in ~/.bashrc file:

alias sensors="echo CPU: $(cat /sys/class/thermal/thermal_zone0/temp|cut -b -2)°C"

So on next login session when i type sensors command, it return CPU temperature in °C.


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki