`acpi -t` gives the temperature. You might need to say `sudo apt-get install acpi`.