Raspberry Pi - Serial Number

Getting the unique serial number from a Raspberry Pi.

Posted by Craig Johnston on Monday, February 13, 2017
SHARE

Getting the unique serial number from a Raspberry Pi.

cat /proc/cpuinfo | grep ^Serial | cut -d":" -f2

Example output:

 00000000e215b4a2

An interesting use for this is “binding” software, encryption or other servcies to a specific Pi. Found this in a suggestion on the Stack Overflow question “Securing data on SD card Raspberry Pi”

Raspberry Pi - Serial Number: Getting the unique serial number from a Raspberry Pi. by Craig Johnston is licensed under a Creative Commons Attribution 4.0 International License. Creative Commons License


SHARE
FOLLOW