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

shell生成随机mac,随机uuid

上一篇:「Linux」- 安装 Opera 浏览器 @20210211


下一篇:[Bash] Set Default Arguments with Bash Shell Parameter Expansions