Where can I find the serial number of the Raspberry Pi I am currently using?
Tell me more
×
Raspberry Pi Stack Exchange is a question and answer site for
users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.
|
|
The serial number can be found in
Bash/PerlIn Bash, it is very simple to extract... by using Perl. Use
For example,
PythonRaspberry Spy provide a very useful Python example.
References |
|||||||||||||
|
Bash/AwkSince this turned out to be some kind of "how many ways can you get the serial" here is the awk version
awk '/^Serial\s*:\s/{print $3}' /proc/cpuinfo
|
||||
|
|
Bash/GrepUsing
BashUsing pure Bash without using any external utilities:
The output of either of the above is the same. |
||||
|
|