IStats is a command line tool that allows you to easily get CPU temperature, fan speed, and battery information on OS X.
Portal: iStats
The installation
Brew Installation
brew install iStats
Copy the code
Install using gem
gem install iStats
Copy the code
Note
If you are running an older version of OS X and the installation fails, you may want to try running this command instead:
sudo ARCHFLAGS=-Wno error=unused command line argument hard error in future gem install iStats
Copy the code
use
Easy to see
Open the command line and enter the command
istats
Copy the code
The response is as follows
--- CPU Stats ---
CPU temp: 50.5°C ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁in system: 2
Fan 0 speed: 2168The RPM ▁ ▂ ▃ ▅ ▆ ▇ Fan1 speed: 2003RPM ▁ ▁ ▁ Hf news Cycle count:168▁ ▂ ▃ ▅ ▆ ▇16.8%
Max cycles: 1000
Current charge: 5938MAh ▁ ▂ ▃ ▅ ▆ ▇100%
Maximum charge: 5938MAh ▁ ▂ ▃ ▅ ▆ ▇89.0%
Design capacity: 6669 mAh
Battery temp: 35.3°C
For more stats run `istats extra` and follow the instructions.
Copy the code
Details see
Open the command line and enter the command
istats scan
Copy the code
The response is as follows
No config file /Users/meng/.iStats/sensors.conf found .. Run scan
Scanning keys...
TaLC Unknown: 34.19° C ▁ ▂ ▃ ▅ ▆ ▇ TaRC Unknown:35.19°C (▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁1 Proximity: 46.13° C ▁ ▂ ▃ ▅ ▆ ▇ Th2H Unknown:44.88▃▅▆ ▃▅▆ Palm rest L:33.13▃▅▆ ▃▅▆ Ts0S Memory Bank Proximity:38.31° C ▁ ▂ ▃ ▅ ▆ ▇ Ts1P Unknown:30.44° C ▁ ▂ ▃ ▅ ▆ ▇ Ts1S Unknown:37.42° C ▁ ▂ ▃ ▅ ▆ ▇ Ts2S Unknown:37.08° C ▁ ▂ ▃ ▅ ▆ ▇ TA0V Unknown:30.38° C ▁ ▂ ▃ ▅ ▆ ▇ TBXT Unknown:35.09▃▅▆ ▃▅▆ TB0T Battery TS_MAX:35.09° C ▁ ▂ ▃ ▅ ▆ ▇ TB1T '1: 32.69° C ▁ ▂ ▃ ▅ ▆ ▇ TB2T '2: 35.09▃▅▆ ▃▅▆ TCGC PECI GPU:58.0°C () ▃▅▆ ▃▅▆ TCMc Unknown: -128.0▃▅▆ ▃▅▆ TCSA PECI SA:59.0° C ▁ ▂ ▃ ▅ ▆ ▇ TCTD Unknown:0.17▃▅▆ TCXC PECI CPU at °C64.59° C ▁ ▂ ▃ ▅ ▆ ▇ TC0E CPU0?? :63.34° C ▁ ▂ ▃ ▅ ▆ ▇ TC0F CPU0?? :63.78° C ▁ ▂ ▃ ▅ ▆ ▇ TC0P CPU0 Proximity: 49.81° C ▁ ▂ ▃ ▅ ▆ ▇ TC1C Core1: 64.0° C ▁ ▂ ▃ ▅ ▆ ▇ TC2C Core2: 61.0° C ▁ ▂ ▃ ▅ ▆ ▇ TC3C Core3: 62.0° C ▁ ▂ ▃ ▅ ▆ ▇ TC4C Core4: 60.0° C ▁ ▂ ▃ ▅ ▆ ▇ TGDD Unknown:50.0° C ▁ ▂ ▃ ▅ ▆ ▇ TGVP Unknown:44.56° C ▁ ▂ ▃ ▅ ▆ ▇ TG0D GPU0 Die: 54.06° C ▁ ▂ ▃ ▅ ▆ ▇ TG0F Unknown:50.75° C ▁ ▂ ▃ ▅ ▆ ▇ TG0P GPU0 Proximity: 48.63° C ▁ ▂ ▃ ▅ ▆ ▇ TH0a Unknown:34.88° C ▁ ▂ ▃ ▅ ▆ ▇ TH0b Unknown:33.63° C ▁ ▂ ▃ ▅ ▆ ▇ TH0c Unknown:35.0°C ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁127.0° C ▁ ▂ ▃ ▅ ▆ ▇ TH0A Unknown:34.88° C ▁ ▂ ▃ ▅ ▆ ▇ TH0B Unknown:33.63° C ▁ ▂ ▃ ▅ ▆ ▇ TH0C Unknown:35.0°C ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁42.0°C ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁ ▁42.0▃▅▆ ▃▅▆ TM0P Memory Slot Proximity:46.44▃▅▆ ▃▅▆ TPCD Platform Controller Hub Die:38.0° C ▁ ▂ ▃ ▅ ▆ ▇ TTLD Unknown:34.13° C ▁ ▂ ▃ ▅ ▆ ▇ TTRD Unknown:32.63▃▅▆ ▃▅▆ TW0P AirPort Proximity:47.38°C () ▃▅▆ ▃▅▆ Done scanning keys. All keys are disabled bydefault. Use `istats enable [key]` to enable specific keys or `istats enable all`.
The enabled sensors will show up when running `istats` or `istats extra`.
Copy the code
conclusion
Very simple a command line tool, you can view Mac temperature information, fan information, etc.