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


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

Then lookup the revision from

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 *