Skip to content

Instantly share code, notes, and snippets.

@57-Wolve
Created October 20, 2017 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 57-Wolve/5eb58fecef0502d05589d45689fce1ae to your computer and use it in GitHub Desktop.
Save 57-Wolve/5eb58fecef0502d05589d45689fce1ae to your computer and use it in GitHub Desktop.
Linux Unique Machine ID
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