How to Identify Your Raspberry Pi’s Model and Hardware Revision Using the Command Line Interface

This guide will show you how to determine your Raspberry Pi’s model and hardware revision using the command line interface (CLI) in a few easy steps. …


Updated October 6, 2023

Need help with your Raspberry Pi?
Contact Me!

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


This guide will show you how to determine your Raspberry Pi’s model and hardware revision using the command line interface (CLI) in a few easy steps.

  1. Open a terminal window on your Raspberry Pi by clicking on the “Terminal” icon in the top menu or by pressing Ctrl + Alt + T.
  2. Type the following command and press enter:
cat /proc/device-tree/model
  1. The output will display your Raspberry Pi’s model name, such as “Raspberry Pi 4 Model B Rev 1.4” or “Raspberry Pi Zero W Rev 1.1”. This command provides the exact make and model of your device.

Alternatively, you can use the following command to get just the hardware revision number:

cat /proc/device-tree/system/linux,revision
  1. The output will display a 4-digit code that represents your Raspberry Pi’s hardware revision. For example, “a02082” is the hardware revision for the Raspberry Pi 3 Model B+.

Now you know how to check the model of your Raspberry Pi using the command line interface. This information can be useful when searching for solutions to specific issues or installing software that requires a certain version of the device.

Remember, if you’re unsure of what command to use or need further assistance, you can always visit the official Raspberry Pi documentation at raspberrypi.org/documentation for more information and resources.