Skip to content
The Chat Archive
mistral-medium-2505· Mistral AI LMArena Human Preference 140K

How to live view cpu temperature on linux?

  1. User

    How to live view cpu temperature on linux?

  2. Assistant

    To live-view your CPU temperature on Linux, you can use several command-line tools or graphical applications. Here are some common methods:

    1. Using sensors (lm-sensors)

    The sensors command from the lm-sensors package provides real-time CPU temperature readings.

    Installation (if not already installed):

    sudo apt install lm-sensors  # Debian/Ubuntu
    sudo dnf install lm_sensors  # Fedora
    sudo pacman -S lm_sensors    # Arch Linux
    

    Detect sensors:

    sudo sensors-detect
    

    (Answer YES to all prompts.)

    View CPU temperature:

    sensors
    

    Example output:

    coretemp-isa-0000
    Adapter: ISA adapter
    Package id 0:  +45.0°C  (high = +80.0°C, crit = +100.0°C)
    Core 0:        +43.0°C  (high = +80.0°C, crit = +100.0°C)
    Core 1:        +44.0°C  (high = +80.0°C, crit = +100.0°C)
    ...
    

    Continuous monitoring (refresh every 2 seconds):

    watch -n 2 sensors
    

    2. Using hwinfo

    hwinfo provides detailed hardware information, including CPU temperature.

    Installation:

    sudo apt install hwinfo  # Debian/Ubuntu
    sudo dnf install hwinfo  # Fedora
    sudo pacman -S hwinfo    # Arch Linux
    

    Check CPU temperature:

    sudo hwinfo --sensor | grep -i temp
    

    3. Using psensor (Graphical Tool)

    psensor is a graphical tool for monitoring CPU temperature.

    Installation:

    sudo apt install psensor  # Debian/Ubuntu
    sudo dnf install psensor  # Fedora
    sudo pacman -S psensor    # Arch Linux
    

    Run:

    psensor
    

    (It will display a real-time graph of CPU temperature.)


    4. Using glances (System Monitoring Tool)

    glances provides a comprehensive system overview, including CPU temperature.

    Installation:

    sudo apt install glances  # Debian/Ubuntu
    sudo dnf install glances  # Fedora
    sudo pacman -S glances    # Arch Linux
    

    Run:

    glances
    

    (Look for the CPU Temp section.)


    5. Using nvidia-smi (For NVIDIA GPUs)

    If you have an NVIDIA GPU, you can check its temperature with:

    nvidia-smi
    

    6. Using inxi (System Information Tool)

    inxi provides detailed hardware information, including CPU temperature.

    Installation:

    sudo apt install inxi  # Debian/Ubuntu
    sudo dnf install inxi  # Fedora
    sudo pacman -S inxi    # Arch Linux
    

    Check CPU temperature:

    inxi -s
    

    (Look for the CPU Temp section.)


    Summary

    • Command-line tools: sensors, hwinfo, glances, inxi
    • Graphical tool: psensor
    • NVIDIA GPU: nvidia-smi

    Choose the method that best fits your needs! 🚀

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.