• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to monitor your CPU on debian or ubuntu systems

by admin

There are many reasons to want to monitor your CPU maybe if you are over-clocking(making sure your CPU hasn’t caught fire after running Prime95), or you might just be interested to look at your CPU temps, there are lots of different reasons and this is a post to show you how.

For both of these programs, lm-sensors is required and can be installed with a apt-get.

$ sudo apt-get install lm-sensors

If you get a run sudo apt-get update which will update the package lists. You then need to run sudo sensors-detect and follow the instructions this command is finding all the monitoring devices that are available on your hardware. If you follow the standard instructions you should be fine.

Installing xsensors

Install with a simple apt-get.

$ sudo apt-get install xsensors

Wait for it to install then run:

$ xsensors

This should open up a program looking something like this:

xsensors

This shows the temperature of the hardware in your computer. It doesn’t however have very much detail but you may like it if you are just looking for a simple program.

If you want something with more detail I would recommend psensors. I will show you how to install it now.

Installing Psensor

Install with a simple apt-get.

$ sudo apt-get install psensor

Wait for it to install then run:

$ psensor

This should open up a program looking something like this:

psensor

I Prefer psensors as it has more information about the hardware. It also has a nice graph which compares temperatures.

Average temperatures

CPU idle temp about 40C
CPU normal temp 50C
CPU stress temp 65-75C(some may run hotter especially Haswell chips in the 80C-90C)

If your CPU is running hot you might want to check that the cooler is working properly i.e fan isn’t clogged with dust and heatsink is attached properly. You also could re apply your thermal paste.

Filed Under: Linux, Ubuntu

Some more articles you might also be interested in …

  1. df Command Examples in Linux
  2. mkfs.ntfs Command Examples in Linux
  3. How to change a system’s machine-ID in Oracle Enterprise Linux 7
  4. Error “530: permission denied” when user logs in to vsftpd server via ftp
  5. arduino-builder: A command-line tool for compiling arduino sketches
  6. resize2fs Command Examples in Linux
  7. CentOS / RHEL 7 : How to configure VLAN Tagging using nmcli
  8. Understanding rsyslog Filter Options
  9. How to Disable the ‘lvm2-lvmetad.socket/service’ on CentOS/RHEL 7
  10. Linux OS Service ‘microcode_ctl’

You May Also Like

Primary Sidebar

Recent Posts

  • base32 Command Examples (Encode or decode file or standard input to/from Base32, to standard output)
  • banner Command Examples (Print the given argument as a large ASCII art)
  • bandwhich Command Examples (Display the current network utilization by process, connection or remote IP/hostname)
  • balena Command Examples (Interact with the balenaCloud, openBalena and the balena API from the command-line)

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright