Skip to content

Instantly share code, notes, and snippets.

@SidShetye
Last active April 22, 2020 03:41
Show Gist options
  • Save SidShetye/632180341c498afe77b95f9120f66967 to your computer and use it in GitHub Desktop.
Save SidShetye/632180341c498afe77b95f9120f66967 to your computer and use it in GitHub Desktop.
script for system info on Rasbperry Pi
#!/bin/sh
echo "Temperature ....: $(vcgencmd measure_temp | sed 's/.*=//')"
echo "Memory .........: $(free -h | grep Mem | awk '{print $4 " free out of " $2}')"
echo "Storage ........: $(df -H | grep "/$" | awk '{print $4 " free out of " $2}')"
echo "Uptime .........: $(uptime -p)"
echo "CPU Frequency ..: $(($(vcgencmd measure_clock arm | sed 's/^.*=//')/1000000)) MHz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment