mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-15 06:12:59 +00:00
14 lines
471 B
Plaintext
14 lines
471 B
Plaintext
# sensors
|
|
# Print sensors information
|
|
|
|
# By default, if possible, sensors(1) will provide temperature information in
|
|
# Celsius. Using the `-f` option, Fahrenheit can instead be used.
|
|
sensors -f
|
|
|
|
# Display sensor information in raw output, suitable for parsing.
|
|
sensors -u
|
|
|
|
# Using sensors(1) and Perl, output only the CPU's fan speed (RPM). May not
|
|
# work on all system's software and/or hardcore configurations.
|
|
sensors | perl -ne '/^cpu_fan/ && print((split(" "))[1])'
|