Janis Lesinskis' Blog

Assorted ramblings

  • All entries
  • About me
  • Projects
  • Economics
  • Misc
  • Software-engineering
  • Sports

Finding system temperature from the command line


Sometimes you want to check the temperature of your computer from the command line, here's a command I've been using lately:

paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/'
Published: Fri 10 November 2023
By Janis Lesinskis
In Software-engineering
Tags: software-engineering command-line scripting shell-script

links

  • Amazon wishlist

social

  • My GitHub page
  • LinkedIn

Proudly powered by Pelican, which takes great advantage of Python.