Skip to content

Instantly share code, notes, and snippets.

@axelrindle
Created October 14, 2019 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axelrindle/38fa7635abb373240ce80609697516ad to your computer and use it in GitHub Desktop.
Save axelrindle/38fa7635abb373240ce80609697516ad to your computer and use it in GitHub Desktop.
bash utilities
#!/bin/sh
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
echo "GPU => $(vcgencmd measure_temp | cut -d '=' -f 2)"
echo "CPU => $((cpu/1000))'C"
#!/bin/sh
getent group sudo | cut -d: -f4
#!/bin/sh
ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{$1=$1};1' | cut -d\ -f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment