Here are some handy commands that can be used to check the hardware version on a Linux-based machine.
uname -a: This command displays detailed information about the kernel version, which can be helpful for identifying the hardware. Example:
tom@rpi0-yo3iti:~ $ uname -a
Linux rpi0-yo3iti 6.12.25+rpt-rpi-v6 #1 Raspbian 1:6.12.25-1+rpt1 (2025-04-30) armv6l GNU/Linuxcat /proc/cpuinfo: This command shows detailed CPU information, including a hardware revision code.
tom@rpi0-yo3iti:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 996.14
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
/
Hardware : BCM2835
Revision : 9000c1
Serial : 0000000000005b6d
Model : Raspberry Pi Zero W Rev 1.1
cat /proc/cpuinfo | grep Revision: This command isolates the revision code from the cpuinfo output:
tom@rpi0-yo3iti:~ $ cat /proc/cpuinfo | grep Revision Revision : 9000c1
pinout: Running pinout in the terminal provides a visual map of the GPIO pins and includes information about the specific hardware model.
tom@rpi0-yo3iti:~ $ pinout Description : Raspberry Pi Zero W rev 1.1 Revision : 9000c1 SoC : BCM2835 RAM : 512MB Storage : MicroSD USB ports : 1 (of which 0 USB3) Ethernet ports : 0 (0Mbps max. speed) Wi-fi : True Bluetooth : True Camera ports (CSI) : 1 Display ports (DSI): 0 ,–oooooooooooooooooooo—. | 1ooooooooooooooooooo J8| —+ PiZero W RUN o1 c| sd| V1.1 +—+ TV 1o s| —+ |SoC| i| | hdmi +—+ usb pwr | `-| |————| |-| |-‘ J8: 3V3 (1) (2) 5V GPIO2 (3) (4) 5V GPIO3 (5) (6) GND GPIO4 (7) (8) GPIO14 GND (9) (10) GPIO15 GPIO17 (11) (12) GPIO18 GPIO27 (13) (14) GND GPIO22 (15) (16) GPIO23 3V3 (17) (18) GPIO24 GPIO10 (19) (20) GND GPIO9 (21) (22) GPIO25 GPIO11 (23) (24) GPIO8 GND (25) (26) GPIO7 GPIO0 (27) (28) GPIO1 GPIO5 (29) (30) GND GPIO6 (31) (32) GPIO12 GPIO13 (33) (34) GND GPIO19 (35) (36) GPIO16 GPIO26 (37) (38) GPIO20 GND (39) (40) GPIO21 RUN: RUN (1) GND (2) TV: COMPOSITE (1) GND (2) For further information, please refer to https://pinout.xyz/
cat /sys/firmware/devicetree/base/model: This file contains a text string that clearly states the hardware model.
tom@rpi0-yo3iti:~ $ cat /sys/firmware/devicetree/base/model Raspberry Pi Zero W Rev 1.1
Hope this helps