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