title: How to find a file containing CPU temperature and fan speed information in all Linux distros at same location?
body: <p>I am working on a project where I have to get CPU temperature (including cores) and fans speed. </p>
  
  <p>For my PC, I have used <code>/sys/class/hwmon/hwmon2/temp*_input</code> for the CPU and <code>/sys/class/hwmon/hwmon3/device/fan*_input</code> for the fans speed.</p>
  
  <p>My code does not works on some other PCs. First, the OS is Ubuntu 18.04 and the second is 16.04. I would like to find an universal path from where I can get all the necessary information. Is there anything like it that I can use?</p>