Know the temperature of your NVMe disk on your favorite Linux distro


Solid state hard drives or SSDs have been evolving, with NVMe technology among those preferred by many users looking for great performance. These hard drives are much faster than conventional magnetic hard drives or HDDs. In addition, prices are falling considerably, while capacities are progressively increasing. Therefore, there are no longer so many impediments to having one of these hard drives, which offer benefits that are quite noticeable when opening programs or starting up.

Well, if you have one of these hard drives on your computer with a GNU / Linux distro, as is the case with Slimbook computers, you can see the temperature of your hard drive in a very simple way that I describe here. This way you will be able to keep them under control operating at adequate ranges or detect possible anomalies if the temperatures are too high, according to the safe operating ranges specified by each manufacturer in their datasheets.

In order to read the sensor temperature value of these NVMe drives, the first thing you need to do is install nvme-cli client in your favorite distro. For that, you can use any of the following commands depending on the distro you have:

<br data-mce-bogus="1">

sudo apt-get install nvme-cli<br data-mce-bogus="1">

sudo zypper install nvme-cli<br data-mce-bogus="1">

sudo yum install nvme-cli<br data-mce-bogus="1">

sudo pacman -S nvme-cli<br data-mce-bogus="1">



This will install on Debian / Ubuntu, openSUSE / SUSE, CentOS / RHEL / Fedora, and Arch Linux respectively. Once installed, to read the temperature value, you just have to do the following:

sudo nvme smart-log /dev/nvme0 | grep '^temperature'


This will show you the temperature on the screen. If you don't use grep as a filter, all the information regarding the NVMe disk will appear, but this will save you having to search for it in the output. By the way, you already know that if you have more NVMe disks, you can replace / dev / nvme0 with the device number you want to check...

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

Be the first to comment

Leave a Comment

Your email address will not be published.



  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.