shell生成随机mac,随机uuid


shell生成随机mac

[root@localhost images]# echo 08:00:27:$(openssl rand -hex 3 | sed 's/\(..\)/\1:/g; s/.$//')
08:00:27:40:38:1a

shell随机生成uuid

[root@localhost images]# uuidgen
d2db7973-f793-4acc-9595-7563e196539f
[root@localhost images]# uuidgen | sed 's/-//g'
33ad00c1d4424030b9e85a72850dc7b0


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM