Find fan speed and cpu temp in linux












11















what are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). is there any alternative for that?










share|improve this question























  • Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).

    – dirkt
    Dec 8 '16 at 11:41
















11















what are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). is there any alternative for that?










share|improve this question























  • Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).

    – dirkt
    Dec 8 '16 at 11:41














11












11








11


1






what are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). is there any alternative for that?










share|improve this question














what are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). is there any alternative for that?







fan






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 8 '16 at 9:53









Rajnish Kumar SoniRajnish Kumar Soni

1441213




1441213













  • Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).

    – dirkt
    Dec 8 '16 at 11:41



















  • Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).

    – dirkt
    Dec 8 '16 at 11:41

















Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).

– dirkt
Dec 8 '16 at 11:41





Why do you want an alternative to lm-sensors? (And as far as I know, there is none, though the code is open source, so you can write your own alternative if you really need to, for whatever reason).

– dirkt
Dec 8 '16 at 11:41










5 Answers
5






active

oldest

votes


















13














For CPU temperature:



On Debian:



sudo apt-get install lm-sensors


On Centos:



sudo yum install lm_sensors


Run using:



sudo sensors-detect


Type sensors to get CPU temp.



For fan speed:



sensors | grep fan



This will output fan speed



or install psensor using:



sudo apt-get install psensor


One can also use hardinfo



sudo apt-get install hardinfo





share|improve this answer





















  • 2





    sensors |grep fan doesn't output anything at all!

    – matteo
    Aug 19 '18 at 16:56











  • @matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'

    – KevinM
    Aug 21 '18 at 15:56











  • The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).

    – Milan Kerslager
    Feb 8 at 19:58



















10














If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
It displays CPU temperature, utilization, frequency and power.
Fan speed was also added.



Installation methods are explained on the GitHub Readme.
s-tui on GitHub



This is a screenshot of what it looks like
s-tui screenshot






share|improve this answer
























  • Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!

    – Rajnish Kumar Soni
    Oct 11 '17 at 9:12











  • Looks impressive and I like the terminal eye candy!

    – Tahir Khalid
    May 13 '18 at 10:03



















1














an alternative for lmsensor:



install xsensors using sudo apt-get install xsensors






share|improve this answer































    1














    I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.



    I run a script which pulls SDR data on the machine in test (example lines follow)



    ti=$(date +%H:%M:%S)
    pt=$(ipmitool -I open sdr | grep 'PS1 Temp')


    and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds



    echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul


    before looping around again for another pass.






    share|improve this answer































      0














      i'm use Glances in python. It's a interactive process manager and hardware status.



      apt install python python-pip; pip install glances;


      and run with:



      glances


      good look ;)






      share|improve this answer








      New contributor




      user3727521 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
















      • 1





        Can you show how it allows the user to find out fan speed and CPU temperature?

        – G-Man
        2 hours ago











      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f328906%2ffind-fan-speed-and-cpu-temp-in-linux%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      13














      For CPU temperature:



      On Debian:



      sudo apt-get install lm-sensors


      On Centos:



      sudo yum install lm_sensors


      Run using:



      sudo sensors-detect


      Type sensors to get CPU temp.



      For fan speed:



      sensors | grep fan



      This will output fan speed



      or install psensor using:



      sudo apt-get install psensor


      One can also use hardinfo



      sudo apt-get install hardinfo





      share|improve this answer





















      • 2





        sensors |grep fan doesn't output anything at all!

        – matteo
        Aug 19 '18 at 16:56











      • @matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'

        – KevinM
        Aug 21 '18 at 15:56











      • The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).

        – Milan Kerslager
        Feb 8 at 19:58
















      13














      For CPU temperature:



      On Debian:



      sudo apt-get install lm-sensors


      On Centos:



      sudo yum install lm_sensors


      Run using:



      sudo sensors-detect


      Type sensors to get CPU temp.



      For fan speed:



      sensors | grep fan



      This will output fan speed



      or install psensor using:



      sudo apt-get install psensor


      One can also use hardinfo



      sudo apt-get install hardinfo





      share|improve this answer





















      • 2





        sensors |grep fan doesn't output anything at all!

        – matteo
        Aug 19 '18 at 16:56











      • @matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'

        – KevinM
        Aug 21 '18 at 15:56











      • The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).

        – Milan Kerslager
        Feb 8 at 19:58














      13












      13








      13







      For CPU temperature:



      On Debian:



      sudo apt-get install lm-sensors


      On Centos:



      sudo yum install lm_sensors


      Run using:



      sudo sensors-detect


      Type sensors to get CPU temp.



      For fan speed:



      sensors | grep fan



      This will output fan speed



      or install psensor using:



      sudo apt-get install psensor


      One can also use hardinfo



      sudo apt-get install hardinfo





      share|improve this answer















      For CPU temperature:



      On Debian:



      sudo apt-get install lm-sensors


      On Centos:



      sudo yum install lm_sensors


      Run using:



      sudo sensors-detect


      Type sensors to get CPU temp.



      For fan speed:



      sensors | grep fan



      This will output fan speed



      or install psensor using:



      sudo apt-get install psensor


      One can also use hardinfo



      sudo apt-get install hardinfo






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jan 4 '18 at 10:51









      Kevin Lemaire

      1,168724




      1,168724










      answered Dec 8 '16 at 10:02









      RahulRahul

      258210




      258210








      • 2





        sensors |grep fan doesn't output anything at all!

        – matteo
        Aug 19 '18 at 16:56











      • @matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'

        – KevinM
        Aug 21 '18 at 15:56











      • The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).

        – Milan Kerslager
        Feb 8 at 19:58














      • 2





        sensors |grep fan doesn't output anything at all!

        – matteo
        Aug 19 '18 at 16:56











      • @matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'

        – KevinM
        Aug 21 '18 at 15:56











      • The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).

        – Milan Kerslager
        Feb 8 at 19:58








      2




      2





      sensors |grep fan doesn't output anything at all!

      – matteo
      Aug 19 '18 at 16:56





      sensors |grep fan doesn't output anything at all!

      – matteo
      Aug 19 '18 at 16:56













      @matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'

      – KevinM
      Aug 21 '18 at 15:56





      @matteo Case matters. On my system it is "Processor Fan", so use 'grep -i fan'

      – KevinM
      Aug 21 '18 at 15:56













      The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).

      – Milan Kerslager
      Feb 8 at 19:58





      The sensors have to be detected first by running sensors-detect after installation (interactive terminal script, just pres Enter on questions and all have to be done automagically). This is needed on CentOS, on Debian configure/reconfigure is fired after install or dpkg-reconfigure psensor).

      – Milan Kerslager
      Feb 8 at 19:58













      10














      If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
      It displays CPU temperature, utilization, frequency and power.
      Fan speed was also added.



      Installation methods are explained on the GitHub Readme.
      s-tui on GitHub



      This is a screenshot of what it looks like
      s-tui screenshot






      share|improve this answer
























      • Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!

        – Rajnish Kumar Soni
        Oct 11 '17 at 9:12











      • Looks impressive and I like the terminal eye candy!

        – Tahir Khalid
        May 13 '18 at 10:03
















      10














      If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
      It displays CPU temperature, utilization, frequency and power.
      Fan speed was also added.



      Installation methods are explained on the GitHub Readme.
      s-tui on GitHub



      This is a screenshot of what it looks like
      s-tui screenshot






      share|improve this answer
























      • Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!

        – Rajnish Kumar Soni
        Oct 11 '17 at 9:12











      • Looks impressive and I like the terminal eye candy!

        – Tahir Khalid
        May 13 '18 at 10:03














      10












      10








      10







      If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
      It displays CPU temperature, utilization, frequency and power.
      Fan speed was also added.



      Installation methods are explained on the GitHub Readme.
      s-tui on GitHub



      This is a screenshot of what it looks like
      s-tui screenshot






      share|improve this answer













      If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible.
      It displays CPU temperature, utilization, frequency and power.
      Fan speed was also added.



      Installation methods are explained on the GitHub Readme.
      s-tui on GitHub



      This is a screenshot of what it looks like
      s-tui screenshot







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Oct 10 '17 at 20:32









      amanuskamanusk

      23124




      23124













      • Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!

        – Rajnish Kumar Soni
        Oct 11 '17 at 9:12











      • Looks impressive and I like the terminal eye candy!

        – Tahir Khalid
        May 13 '18 at 10:03



















      • Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!

        – Rajnish Kumar Soni
        Oct 11 '17 at 9:12











      • Looks impressive and I like the terminal eye candy!

        – Tahir Khalid
        May 13 '18 at 10:03

















      Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!

      – Rajnish Kumar Soni
      Oct 11 '17 at 9:12





      Thanks after many days got a response on question. i was using lm-sensor as suggested by others. will defiantly try this new software. thanks !!!

      – Rajnish Kumar Soni
      Oct 11 '17 at 9:12













      Looks impressive and I like the terminal eye candy!

      – Tahir Khalid
      May 13 '18 at 10:03





      Looks impressive and I like the terminal eye candy!

      – Tahir Khalid
      May 13 '18 at 10:03











      1














      an alternative for lmsensor:



      install xsensors using sudo apt-get install xsensors






      share|improve this answer




























        1














        an alternative for lmsensor:



        install xsensors using sudo apt-get install xsensors






        share|improve this answer


























          1












          1








          1







          an alternative for lmsensor:



          install xsensors using sudo apt-get install xsensors






          share|improve this answer













          an alternative for lmsensor:



          install xsensors using sudo apt-get install xsensors







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 22 '18 at 19:20









          Ahmad K MostafaAhmad K Mostafa

          235




          235























              1














              I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.



              I run a script which pulls SDR data on the machine in test (example lines follow)



              ti=$(date +%H:%M:%S)
              pt=$(ipmitool -I open sdr | grep 'PS1 Temp')


              and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds



              echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul


              before looping around again for another pass.






              share|improve this answer




























                1














                I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.



                I run a script which pulls SDR data on the machine in test (example lines follow)



                ti=$(date +%H:%M:%S)
                pt=$(ipmitool -I open sdr | grep 'PS1 Temp')


                and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds



                echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul


                before looping around again for another pass.






                share|improve this answer


























                  1












                  1








                  1







                  I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.



                  I run a script which pulls SDR data on the machine in test (example lines follow)



                  ti=$(date +%H:%M:%S)
                  pt=$(ipmitool -I open sdr | grep 'PS1 Temp')


                  and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds



                  echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul


                  before looping around again for another pass.






                  share|improve this answer













                  I have used ipmitool from GitHub and freeipmi on my servers, but, well, they're servers, with BMC hardware which supports IPMI. If your PC does, it's a reasonable solution.



                  I run a script which pulls SDR data on the machine in test (example lines follow)



                  ti=$(date +%H:%M:%S)
                  pt=$(ipmitool -I open sdr | grep 'PS1 Temp')


                  and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds



                  echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul


                  before looping around again for another pass.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 22 '18 at 15:24









                  K7AAYK7AAY

                  618624




                  618624























                      0














                      i'm use Glances in python. It's a interactive process manager and hardware status.



                      apt install python python-pip; pip install glances;


                      and run with:



                      glances


                      good look ;)






                      share|improve this answer








                      New contributor




                      user3727521 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.
















                      • 1





                        Can you show how it allows the user to find out fan speed and CPU temperature?

                        – G-Man
                        2 hours ago
















                      0














                      i'm use Glances in python. It's a interactive process manager and hardware status.



                      apt install python python-pip; pip install glances;


                      and run with:



                      glances


                      good look ;)






                      share|improve this answer








                      New contributor




                      user3727521 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.
















                      • 1





                        Can you show how it allows the user to find out fan speed and CPU temperature?

                        – G-Man
                        2 hours ago














                      0












                      0








                      0







                      i'm use Glances in python. It's a interactive process manager and hardware status.



                      apt install python python-pip; pip install glances;


                      and run with:



                      glances


                      good look ;)






                      share|improve this answer








                      New contributor




                      user3727521 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.










                      i'm use Glances in python. It's a interactive process manager and hardware status.



                      apt install python python-pip; pip install glances;


                      and run with:



                      glances


                      good look ;)







                      share|improve this answer








                      New contributor




                      user3727521 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.









                      share|improve this answer



                      share|improve this answer






                      New contributor




                      user3727521 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.









                      answered 2 hours ago









                      user3727521user3727521

                      1




                      1




                      New contributor




                      user3727521 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.





                      New contributor





                      user3727521 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.






                      user3727521 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.








                      • 1





                        Can you show how it allows the user to find out fan speed and CPU temperature?

                        – G-Man
                        2 hours ago














                      • 1





                        Can you show how it allows the user to find out fan speed and CPU temperature?

                        – G-Man
                        2 hours ago








                      1




                      1





                      Can you show how it allows the user to find out fan speed and CPU temperature?

                      – G-Man
                      2 hours ago





                      Can you show how it allows the user to find out fan speed and CPU temperature?

                      – G-Man
                      2 hours ago


















                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f328906%2ffind-fan-speed-and-cpu-temp-in-linux%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      CARDNET

                      Boot-repair Failure: Unable to locate package grub-common:i386

                      Aws NAT - Aws IGW- Aws router