Generate a new random password with a given length, and copy it to the clipboard

pass

  • Tool for storing and reading passwords or other sensitive data.
    All data is GPG-encrypted, and managed with a Git repository.
    More information: <https://www.passwordstore.org>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

pass generate -c {{path/to/data}} {{num}}

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