Skip to content

Instantly share code, notes, and snippets.

@silentsudo
Created May 29, 2021 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silentsudo/e9ee646495172e1e3b85ddda8b552224 to your computer and use it in GitHub Desktop.
Save silentsudo/e9ee646495172e1e3b85ddda8b552224 to your computer and use it in GitHub Desktop.
ubuntu-random-string
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment