@AmrtaShiva 随手搜到了一篇文章 https://blog.csdn.net/qq_29542611/article/details/88321102
按照这里面的方法:
1. 猜测对应的是 /sys/class/dmi/id/product_uuid
2. 帮你找到了这个 property 的 description:
The ProcessorId property contains processor-specific information that describes the processor’s features. For x86 class CPUs, the field’s format depends on the processor’s support of the CPUID instruction. If the instruction is supported, the ProcessorId property contains two DWORD-formatted values. The first (offsets 08h-0Bh) is the EAX value returned by a CPUID instruction with input EAX set to 1. The second (offsets 0Ch-0Fh) is the EDX value returned by that instruction. Only the first two bytes of the ProcessorID property are significant (all others are set to 0) and contain (in WORD-format) the contents of the DX register at CPU reset.
3. 猜测对应的是 /sys/class/dmi/id/board_serial
4. https://unix.stackexchange.com/questions/121757/harddisk-serial-number-from-terminal https://unix.stackexchange.com/questions/364456/getting-hard-disk-drive-serial-number-at-the-terminal-not-the-wwn 参考对应工具的源代码
5. 参考 iproute2 的源代码