Wednesday, March 24, 2021

Find hardware version of Raspberry Pi from the command line

 


Run
cat /proc/cpuinfo
look for revision and look it up on above page

! or 
cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^1000//'

! web version - not always accurate/updated though and not well documented
rev=$(awk '/^Revision/ { print $3 }' /proc/cpuinfo) && curl -L perturb.org/rpi?rev=$rev

No comments: