Linux | Fancy little “dialog” utility

Using Linux’s sophisticated “dialog” utility to display CPU core temperature


sudo apt-get install dialog

sudo apt-get install lm-sensors

Here the lm-sensors for detecting temperature (see here for configuration details:

Finally the script goes as


temp1=$(sensors | grep “Core 0:” | cut -c1-24)
temp2=$(sensors | grep “Core 1:” | cut -c1-24)

dialog –title “System temp info” –msgbox “$temp1 $temp2” 10 22

dialog –clear
exit 0

Using minimal advantage of lm-sensors, it’s just displaying main core temperatures.

Screenshot - 11232013 - 10:52:34 PM