Skip to content

Instantly share code, notes, and snippets.

@gammy
Created October 23, 2015 09:10
Show Gist options
  • Save gammy/1afdc681ede30ba3bc8d to your computer and use it in GitHub Desktop.
Save gammy/1afdc681ede30ba3bc8d to your computer and use it in GitHub Desktop.
Display RPM and temperature on my machine
#!/usr/bin/env bash
sensors \
| grep -e fan -e temp -e Core -e Physical \
| grep -v -e '0 RPM ('
disks=$(lsblk --list --output NAME,TYPE \
| grep disk \
| cut -d ' ' -f 1 \
| sed -s 's#\(.*\)#/dev/\1#')
hddtemp ${disks} 2>&1 | grep -v -e WARNING
nvidia-settings --query=gpucoretemp \
| grep Attribute \
| grep gpu:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment