Discover the exact model of your Raspberry Pi using the command line interface.

Ever wondered which specific model of Raspberry Pi you have? With this quick guide, you’ll learn how to identify your device using the command line interface and some simple commands. This is essentia …


Updated October 30, 2023

Need help with your Raspberry Pi?
Contact Me!

Do you love silly Raspberry Pi Projects?
Check out my this YouTube Channel!


Ever wondered which specific model of Raspberry Pi you have? With this quick guide, you’ll learn how to identify your device using the command line interface and some simple commands. This is essential knowledge for anyone working with Raspberry Pis.

Raspberry Pis come in various models, each with its own specifications and capabilities. Knowing which model you have can be important when choosing compatible hardware or troubleshooting issues. Here’s how to check your Raspberry Pi’s model using the command line interface:

  1. Open a terminal window on your Raspberry Pi by clicking on the terminal icon in the top left corner of the desktop or by pressing Ctrl+Alt+T.
  2. Type the following command and press Enter:
cat /proc/device-tree/model
  1. The output will display information about your Raspberry Pi’s model, including the name, memory size, and revision number. For example:
Raspberry Pi 3 Model B Rev 1.2
  1. Alternatively, you can use the lscpu command to get more detailed information about your device, such as the processor architecture and CPU model:
lscpu
  1. This will display output similar to the following:
Architecture:        armv7l
CPU op-mode(s):      32-bit, 64-bit
Byte Order:         Little Endian
CPU(s):            1
On-line CPU(s) list: 0
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):         1
Model name:        ARMv7 Processor rev 4 (v7l)
  1. Another command you can use to check your Raspberry Pi’s model is uname:
uname -a
  1. The output will show the kernel version, hardware platform, and other system information:
Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:18:46 GMT 2020 armv7l GNU/Linux

In this example, the hardware platform (armv7l) and the revision number (rev 4) indicate that we have a Raspberry Pi 3 Model B.

Remember that the model information provided by these commands can vary depending on your specific device and OS version. Always check the official documentation for the most accurate and up-to-date information.