{"id":69176,"date":"2025-10-05T12:08:29","date_gmt":"2025-10-05T11:08:29","guid":{"rendered":"https:\/\/ekiwi-blog.de\/69176\/linux-read-cpu-temperature\/"},"modified":"2025-10-05T16:02:25","modified_gmt":"2025-10-05T15:02:25","slug":"linux-read-cpu-temperature","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/69176\/linux-read-cpu-temperature\/","title":{"rendered":"Linux: Read CPU temperature"},"content":{"rendered":"<p>How to read out processor temperature in Linux!<\/p>\n<p><!--more--><\/p>\n<p>Under Windows, the CPU temperature can be easily read out with tools such as &#8220;<a href=\"https:\/\/ekiwi-blog.de\/19476\/cpu-und-kuehlung-testen-mit-cpuburn-2\/\">coretemp<\/a>&#8220;. Under Linux, this is also quite simple, both on the console and with a graphical tool.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/69176\/linux-read-cpu-temperature\/#Video\" >Video<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/69176\/linux-read-cpu-temperature\/#Installation\" >Installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi-blog.de\/en\/69176\/linux-read-cpu-temperature\/#Read_out_CPU_temperature\" >Read out CPU temperature<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ekiwi-blog.de\/en\/69176\/linux-read-cpu-temperature\/#Live_view\" >Live view<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ekiwi-blog.de\/en\/69176\/linux-read-cpu-temperature\/#Kernel_modules\" >Kernel modules<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ekiwi-blog.de\/en\/69176\/linux-read-cpu-temperature\/#Graphical_GUI_tool\" >Graphical GUI tool<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Video\"><\/span>Video<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/ADfyVEyRRnA?si=sMIH08qIal5PSPEl\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Installation\"><\/span>Installation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let&#8217;s start with the installation, we install the package &#8220;<code>lm-sensors<\/code>&#8221;<\/p>\n<pre>\r\nsudo apt update\r\nsudo apt install lm-sensors\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Read_out_CPU_temperature\"><\/span>Read out CPU temperature<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With the &#8220;<code>sensors<\/code>&#8221; command, we can now read out the temperature of the CPU and display it on the console.<\/p>\n<pre>\r\nsensors\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/10\/cpu_linux_1.webp\" alt=\"\" width=\"484\" height=\"303\" class=\"aligncenter size-full wp-image-69170\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/10\/cpu_linux_1.webp 484w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/10\/cpu_linux_1-300x188.webp 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Live_view\"><\/span>Live view<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This is only a snapshot, for a permanent display we can use the &#8220;<code>watch<\/code>&#8221; command. The following command refreshes the display every 2 seconds.<\/p>\n<pre>\r\nwatch -n 2 sensors\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Kernel_modules\"><\/span>Kernel modules<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With newer CPUs, the corresponding kernel modules may need to be activated. If this does not work, install the appropriate kernel module depending on the CPU.<\/p>\n<pre>\r\nsudo modprobe coretemp # Intel\r\nsudo modprobe k10temp # AMD\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Graphical_GUI_tool\"><\/span>Graphical GUI tool<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There is also a graphical user interface that can be installed:<\/p>\n<pre>\r\nsudo apt install psensor\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/10\/cpu_linux_2.webp\" alt=\"\" width=\"398\" height=\"389\" class=\"aligncenter size-full wp-image-69172\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/10\/cpu_linux_2.webp 398w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/10\/cpu_linux_2-300x293.webp 300w\" sizes=\"auto, (max-width: 398px) 100vw, 398px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>How to read out processor temperature in Linux!<\/p>\n","protected":false},"author":1,"featured_media":69175,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[3806,2443],"class_list":["post-69176","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-cpu-en","tag-linux-en-2"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/69176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=69176"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/69176\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/69175"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=69176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=69176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=69176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}