Get the Raspberry Pi model from the command line (update #1)

Get the Raspberry Pi model from the command line (update #1)

raspberry

Don’t want to open the case of a Raspberry Pi to find it’s model? or are you connected trough ssh? Here is how to identify your Pi from the command line!

Identification #

pi@some-random-pi:~$ cat /sys/firmware/devicetree/base/model
Raspberry Pi 3 Model B Rev 1.2

The old version of this post using revision number lies here.

~~~

Question, remark, bug? Don't hesitate to contact me or report a bug.