Last active
December 29, 2023 01:10
-
-
Save simryang/4c9c609e42b12557fc5bab4a31edd927 to your computer and use it in GitHub Desktop.
Get Rasbperry Pi Serial from /proc/cpuinfo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -c 'from pathlib import Path; import yaml; print(yaml.safe_load(Path("/proc/cpuinfo").read_text().replace("\t", " ")).get("Serial"))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment