Generate a UUIDv4 and specify the output format

uuid

  • Generate and decode Universally Unique Identifiers (UUID).
    See also `uuidgen`.
    More information: <https://manned.org/uuid>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

uuid -v {{4}} -F {{BIN|STR|SIV}}

click the source code to copy install uuid on any operating system with command-not-found.com