Skip to content

Instantly share code, notes, and snippets.

@axelrindle
Created October 14, 2019 15:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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