A simple script to display system stats for your Raspberry Pi, including CPU temperature, memory usage, disk usage, CPU load, and power status.
- Clone or download the script:
curl -o ~/.metrics.sh https://raw.githubusercontent.com/Bastien2203/pi-stats/refs/heads/main/.metrics.sh- Make it executable:
chmod +x ~/.metrics.shTo display system metrics, run:
~/.metrics.shTo automatically show the metrics when opening a new terminal:
- For Bash:
echo 'source ~/.metrics.sh' >> ~/.bashrc- For Zsh:
echo 'source ~/.metrics.sh' >> ~/.zshrcThen, restart your terminal or run source ~/.bashrc (or source ~/.zshrc).
💡 Feedback and suggestions are always welcome!