Created
October 20, 2017 12:51
-
-
Save 57-Wolve/5eb58fecef0502d05589d45689fce1ae to your computer and use it in GitHub Desktop.
Linux Unique Machine ID
This file contains 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
echo $(sudo dmidecode -t 4 | grep ID | sed 's/.*ID://;s/ //g') \ $(ifconfig | grep -oP 'HWaddr \K.*' | sed 's/://g') | sha256sum | awk '{print $1}' | |
blkid | grep -oP 'UUID="\K[^"]+' | sha256sum | awk '{print $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment