To find the fan speed in Linux for the CPU and GPU, you can use the following commands:
CPU fan speed:
- You can use the
lm-sensors
package to check the fan speed of the CPU. To install it, use the commandsudo apt-get install lm-sensors
(orsudo yum install lm-sensors
on Fedora/CentOS). - After installation, use the command
sensors
to check the current fan speed of the CPU.
GPU fan speed:
- You can use the
nvidia-smi
command to check the fan speed of the GPU. To install it, you need to install NVIDIA GPU driver in your system. - Use the command
nvidia-smi -q -d FAN
to check the GPU fan speed.
Note: The above commands may vary depending on the Linux distribution you are using.
It’s worth mentioning that some GPUs and motherboards may not support the feature of checking fan speed.