Linux上一切皆文件,無論什麼程序,讀取文件就能獲取一個UUID.bash
Linux內核提供有UUID生成接口:dom
cat /proc/sys/kernel/random/uuid
獲取系統uuidide
dmidecode -s system-uuid | tr 'A-Z' 'a-z'