Generate a UUIDv4 and write the output to a file

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}} -o {{path/to/file}}

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