Last active
October 28, 2016 05:23
-
-
Save yuki777/2e44e73680d02370110de0969f782740 to your computer and use it in GitHub Desktop.
Print 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
#!/usr/bin/env bash | |
case "${OSTYPE}" in | |
darwin*) | |
sysctl -n kern.uuid | |
;; | |
freebsd*) | |
sysctl -n kern.hostuuid | |
;; | |
linux*) | |
cat /var/lib/dbus/machine-id | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment