Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
bash utilities
cpu=$(cat /sys/class/thermal/thermal_zone0/temp)
echo "GPU => $(vcgencmd measure_temp | cut -d '=' -f 2)"
echo "CPU => $((cpu/1000))'C"
getent group sudo | cut -d: -f4
ifconfig | grep "inet " | grep -v | 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