mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-03 23:40:14 +08:00
commit
5720643a59
@ -1,119 +0,0 @@
|
||||
[#]: subject: "How to Check CPU and HDD Temperature in Ubuntu and Other Linux"
|
||||
[#]: via: "https://www.debugpoint.com/cpu-hdd-temperature-ubuntu/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
How to Check CPU and HDD Temperature in Ubuntu and Other Linux
|
||||
======
|
||||
|
||||
**Wondering how you can check the CPU and HDD temperature in Ubuntu and other Linux on your desktop or laptop? Here’s a quick guide.**
|
||||
|
||||
You do not actually require checking CPU or HDD temperature if you are an average user. But, if you are using very older hardware or a thin one, you may run into an overheating problem. Because these thin ones are tightly coupled together inside, and no matter how much heat transfer mechanism is implemented, it heats up. Therefore, it is essential to monitor the temperature of the hardware. However, modern Linux distributions are well capable of handling overheating situations via software sensors.
|
||||
|
||||
### Steps for monitoring CPU and HDD temperature on Ubuntu
|
||||
|
||||
#### Using terminal
|
||||
|
||||
We are going to use a couple of packages to achieve the same. Open a terminal in your Ubuntu-based system and install the following.
|
||||
|
||||
```
|
||||
sudo apt install hddtemp
|
||||
sudo apt install lm-sensors
|
||||
```
|
||||
|
||||
The [hddtemp][1] utility gives you the temperature of your optical hard disk drive as well as SSD (as per my test). And the [lm-sensors][2] package gives you temperature details from the CPUs and other sensors accessed via PCI ports.
|
||||
|
||||
After installation, run the following from the terminal. You need to know your disk identifier for this – for example `/dev/sda` or `/dev/sdb`, etc.
|
||||
|
||||
To find out the disk identifiers, you can use `fdisk`.
|
||||
|
||||
```
|
||||
sudo fdisk -l
|
||||
```
|
||||
|
||||
Then run below to check the HDD or SSD temperature.
|
||||
|
||||
```
|
||||
sudo hddtemp
|
||||
```
|
||||
|
||||
![HDD or SSD Temperature from terminal][3]
|
||||
|
||||
HDD or SSD Temperature from terminal
|
||||
|
||||
Checking the CPU temperature and other information requires an additional step.
|
||||
|
||||
First, run the below command so that the utility of the sensor can detect the sensors in your system.
|
||||
|
||||
```
|
||||
sudo sensors-detect
|
||||
```
|
||||
|
||||
The above command might ask you some YES/NO questions. Keep pressing ENTER to choose the default options.
|
||||
|
||||
Once done, run the below command to view the CPU and other interface temperatures.
|
||||
|
||||
```
|
||||
sensors
|
||||
```
|
||||
|
||||
![using sensors][4]
|
||||
|
||||
using sensors
|
||||
|
||||
#### Using GUI tools
|
||||
|
||||
If you prefer a nice GUI which does all the above, you can install [psensor][5]. This utility works across Linux systems such as Ubuntu, Fedora, [Arch][6] and other variants. This gives you nice graphical plus tabular view of
|
||||
|
||||
**Ubuntu and its derivatives**
|
||||
|
||||
```
|
||||
sudo apt install psensor
|
||||
```
|
||||
|
||||
**Fedora and RPM-based derivatives**
|
||||
|
||||
```
|
||||
sudo dnf install psensor
|
||||
```
|
||||
|
||||
**Arch, Manjaro and similar derivatives**
|
||||
|
||||
```
|
||||
pacman -S psensor
|
||||
```
|
||||
|
||||
Once installed, run via `psensor from the terminal or launch it from the`application menu.
|
||||
|
||||
As you can see in the below screenshot, it gives you a nice view of all the important temperatures across CPU, GPU, and HDD with a nice graph. Using its preferences, you can tweak it as per your need. This lightweight utility can be helpful in many cases.
|
||||
|
||||
![psensor running][7]
|
||||
|
||||
psensor running
|
||||
|
||||
So, these are some ways in which you can monitor CPU, GPU or HDD temperature in your Ubuntu and other Linux systems. Let me know if you know of any other ways to find these out using the comment box below.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/cpu-hdd-temperature-ubuntu/
|
||||
|
||||
作者:[Arindam][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://www.debugpoint.com/author/admin1/
|
||||
[b]: https://github.com/lkxed
|
||||
[1]: https://wiki.archlinux.org/title/Hddtemp
|
||||
[2]: https://github.com/lm-sensors/lm-sensors
|
||||
[3]: https://www.debugpoint.com/wp-content/uploads/2021/09/HDD-or-SSD-Temperature-from-terminal.png
|
||||
[4]: https://www.debugpoint.com/wp-content/uploads/2021/09/psensor.png
|
||||
[5]: https://wpitchoune.net/psensor/
|
||||
[6]: https://www.debugpoint.com/tag/arch-linux
|
||||
[7]: https://www.debugpoint.com/wp-content/uploads/2021/09/psensor-running-1024x465.png
|
@ -0,0 +1,120 @@
|
||||
[#]: subject: "How to Check CPU and HDD Temperature in Ubuntu and Other Linux"
|
||||
[#]: via: "https://www.debugpoint.com/cpu-hdd-temperature-ubuntu/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
如何在 Ubuntu 和其他 Linux 中检查 CPU 和硬盘温度
|
||||
======
|
||||
|
||||
**想知道如何在台式机或笔记本电脑上检查 Ubuntu 和其他 Linux 中的 CPU 和硬盘温度?这是一个快速指南。**
|
||||
|
||||
如果你是普通用户,那么实际上不需要检查 CPU 或 HDD 温度。但是,如果你使用的是非常旧的硬件或较薄的硬件,你可能会遇到过热问题。因为这些薄的硬件内部紧密耦合在一起,无论做了多少传热机制,它都会升温。因此,必须监控硬件的温度。然而,现代 Linux 发行版能够通过软件传感器很好地处理过热情况。
|
||||
|
||||
### 在 Ubuntu 上监控 CPU 和硬盘温度的步骤
|
||||
|
||||
#### 使用终端
|
||||
|
||||
我们将使用几个包来实现相同的目的。在基于 Ubuntu 的系统中打开一个终端并安装以下内容。
|
||||
|
||||
```
|
||||
sudo apt install hddtemp
|
||||
sudo apt install lm-sensors
|
||||
```
|
||||
|
||||
[hddtemp][1] 程序为你提供光驱和 SSD 的温度(根据我的测试)。 [lm-sensors][2] 包为你提供来自 CPU 和其他通过 PCI 端口访问的传感器的温度详细信息。
|
||||
|
||||
安装后,从终端运行以下命令。你需要知道你的磁盘标识符,例如 `/dev/sda` 或 `/dev/sdb` 等。
|
||||
|
||||
要找出磁盘标识符,你可以使用 `fdisk`。
|
||||
|
||||
```
|
||||
sudo fdisk -l
|
||||
```
|
||||
|
||||
然后运行以下命令检查 HDD 或 SSD 温度。
|
||||
|
||||
```
|
||||
sudo hddtemp
|
||||
```
|
||||
|
||||
![HDD or SSD Temperature from terminal][3]
|
||||
|
||||
来自终端的 HDD 或 SSD 温度
|
||||
|
||||
检查 CPU 温度和其他信息需要额外的步骤。
|
||||
|
||||
首先,运行以下命令,以便传感器程序可以检测到系统中的传感器。
|
||||
|
||||
```
|
||||
sudo sensors-detect
|
||||
```
|
||||
|
||||
上面的命令可能会问你一些是/否的问题。继续按回车选择默认选项。
|
||||
|
||||
完成后,运行以下命令查看 CPU 和其他接口温度。
|
||||
|
||||
```
|
||||
sensors
|
||||
```
|
||||
|
||||
![using sensors][4]
|
||||
|
||||
使用传感器
|
||||
|
||||
#### 使用 GUI 工具
|
||||
|
||||
If you prefer a nice GUI which does all the above, you can install [psensor][5]. This utility works across Linux systems such as Ubuntu, Fedora, [Arch][6] and other variants. This gives you nice graphical plus tabular view of
|
||||
如果你更喜欢能完成上述所有操作的漂亮 GUI,你可以安装 [psensor][5]。该程序适用于 Linux 系统,例如 Ubuntu、Fedora、[Arch][6] 和其他变体。它为你提供了漂亮的图形和表格视图:
|
||||
|
||||
**Ubuntu 及其衍生版**
|
||||
|
||||
```
|
||||
sudo apt install psensor
|
||||
```
|
||||
|
||||
**Fedora 和基于 RPM 的衍生版**
|
||||
|
||||
```
|
||||
sudo dnf install psensor
|
||||
```
|
||||
|
||||
**Arch、Manjaro 和类似的衍生版**
|
||||
|
||||
```
|
||||
pacman -S psensor
|
||||
```
|
||||
|
||||
安装后,从`终端运行 psensor 或从应用菜单`启动它。
|
||||
|
||||
正如你在下面的截图中所见,它通过漂亮的图表让你可以很好地了解 CPU、GPU 和 HDD 的所有重要温度。使用它的首选项,你可以根据需要对其进行调整。这个轻量级的程序在很多情况下都会很有帮助。
|
||||
|
||||
![psensor running][7]
|
||||
|
||||
psensor 运行
|
||||
|
||||
因此,这些是你可以在 Ubuntu 和其他 Linux 系统中监控 CPU、GPU 或 HDD 温度的一些方法。如果你知道其他方法,请通过下面的评论栏告诉我。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/cpu-hdd-temperature-ubuntu/
|
||||
|
||||
作者:[Arindam][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://www.debugpoint.com/author/admin1/
|
||||
[b]: https://github.com/lkxed
|
||||
[1]: https://wiki.archlinux.org/title/Hddtemp
|
||||
[2]: https://github.com/lm-sensors/lm-sensors
|
||||
[3]: https://www.debugpoint.com/wp-content/uploads/2021/09/HDD-or-SSD-Temperature-from-terminal.png
|
||||
[4]: https://www.debugpoint.com/wp-content/uploads/2021/09/psensor.png
|
||||
[5]: https://wpitchoune.net/psensor/
|
||||
[6]: https://www.debugpoint.com/tag/arch-linux
|
||||
[7]: https://www.debugpoint.com/wp-content/uploads/2021/09/psensor-running-1024x465.png
|
Loading…
Reference in New Issue
Block a user