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
posted @ 2021-02-11 22:42  魏阳晨  阅读(818)  评论(0)    收藏  举报
AmazingCounters.com