You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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])'