Skip to content

Instantly share code, notes, and snippets.

@sanzaru
Created August 19, 2022 16:21
Show Gist options
  • Save sanzaru/706f1ea0d43a214e4ef0960e73b7dc70 to your computer and use it in GitHub Desktop.
Save sanzaru/706f1ea0d43a214e4ef0960e73b7dc70 to your computer and use it in GitHub Desktop.
RaspberryPi: Print the model and revision bash script
#!/bin/sh
tail -n 1 /proc/cpuinfo | cut -d ":" -f 2 | sed -e 's/^[[:space:]]*//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment