Best way to get machine id on Linux?

后端 未结 4 1251
一整个雨季
一整个雨季 2020-12-08 05:04

What is the best-practiced way to get an unique machine ID in GNU/Linux for i386 architecture?

Are there any good ways except the mac

4条回答
  •  无人及你
    2020-12-08 05:26

    On modern machines with systemd machine id is created by systemd-machine-id-setup and it's location is more standard and with standardized format. Just:

    cat /etc/machine-id
    

提交回复
热议问题