Report my Raspberry Pi model

Report my Raspberry Pi model

How to identify Raspberry Pi model details from the command line.

Or, to put it another way, which Pi did I SSH into?

To get the model:

cat /proc/info

then read the revision from the table

–OR–

rev=$(awk '/^Revision/ { print $3 }' /proc/cpuinfo) && curl -L perturb.org/rpi?rev=$rev

Then lookup the revision from https://elinux.org/RPi_HardwareHistory

To get RAM details (if you have a Pi 4 with 2GB and a Pi 4 with 8GB they look remarkably similar, and if you are like me you didn’t put any sticky labels on when you first put them to use!):

free -m

(2GB reports 1867, 8GB reports 7875)

Leave a Reply

Your email address will not be published. Required fields are marked *