获取CPU ID

Ubuntu 获取CPU序列号或者主板序列号

CPU ID

代码:

sudo dmidecode -t 4 | grep ID

ID: 54 06 05 00 FF FB 8B 0F

主板序列号

代码:

sudo dmidecode -t 2 | grep Serial

MAC地址

代码:

sudo lshw -c network | grep serial | head -n 1

Windows 获取CPU序列号

C:\Users\jesson>wmic CPU get ProcessorID
ProcessorId
BFEBFBFF000206A7

猜你喜欢

转载自www.cnblogs.com/hellojesson/p/9172670.html