$ sudo apt install uuid
$ uuid -v 4
4031e2a9-4a07-4d33-ad40-5821d516e1b1
$ uuid -v 4 | tr a-z A-Z
4C20ACD0-BB52-4D8C-899C-5E579B23DF54
Ubuntu 20.04生成UUID
![](https://img-home.csdnimg.cn/images/20240711042549.png)
$ sudo apt install uuid
$ uuid -v 4
4031e2a9-4a07-4d33-ad40-5821d516e1b1
$ uuid -v 4 | tr a-z A-Z
4C20ACD0-BB52-4D8C-899C-5E579B23DF54