Skip to content

Instantly share code, notes, and snippets.

@kennycyb
Last active September 26, 2019 08:47
Show Gist options
  • Save kennycyb/e922dd6dd6b288fc621219da9128bbb3 to your computer and use it in GitHub Desktop.
Save kennycyb/e922dd6dd6b288fc621219da9128bbb3 to your computer and use it in GitHub Desktop.
Shell: random string

Generate a random string using shell command:

head /dev/urandom | LC_ALL=C tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment