How to create a UUID in bash?
See the uuidgen program which is part of the e2fsprogs package. According to this, libuuid is now part of util-linux and the inclusion in e2fsprogs is being phased out. However, on new Ubuntu systems, uuidgen is now in the uuid-runtime package. To create a uuid and save it in a variable: uuid=$(uuidgen) On my Ubuntu … Read more