Raspberry Pi is a series of small mono board computers. There are several models of Raspberry Pi right from the day 1 of the device. Most of the models looks similar visually. So once it is packaged in the enclosure, it is difficult to understand the model by looking at it from outside.

How to find the Raspberry Pi Device model from the operating system command line ?

The following command helps us to identify the device model from the command line or operating system.

Option 1:

cat /sys/firmware/devicetree/base/model

Option 2:

cat /proc/device-tree/model

Reading any of the above files will give the details of the Raspberry Pi Device details. I hope this tip helps someone 🙂

Advertisement