[英]Parameters to generate globally unique id under linux
What parameters can I retrieve to generate a globally static unique id of system under non-root? 我可以检索哪些参数以在非root用户下生成系统的全局静态唯一ID?
Can I use date of install in /var/log/wtmp file(last | tail)
or it is unstable? 我可以在/var/log/wtmp file(last | tail)
使用安装日期,还是不稳定?
Can I use for it result of ls /dev/disk/by-uuid/
? 我可以使用ls /dev/disk/by-uuid/
吗?
I don't believe that MAC addresses are unique. 我不认为MAC地址是唯一的。
uuidgen
It's usually found in /usr/bin/
通常在/usr/bin/
nyancat ~ # uuidgen
488bc393-a4f5-4a83-8df8-8c15e737dcc5
nyancat ~ #
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.