Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umidjons/e4adcb35ec201141515f5c864414b763 to your computer and use it in GitHub Desktop.
Save umidjons/e4adcb35ec201141515f5c864414b763 to your computer and use it in GitHub Desktop.
Generate random string (password) from linux terminal

Generate random string (password) from Linux terminal

Here we are generating 20 length random string. We can use them as password.

tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs

Sample outputs:

HEiuronCHCQEWODbpENS
fvVCtv6XWwYn1XcgD8GM
pfuVSsp5y1H_sa3l10hl
m9laH8wUDNHAeQrz1m8B
@hackrack
Copy link

Qalaysiz aka?
sluchayno googledan chiqib qoldingiz qarasam adash ekanbiz, ham codingga qiziqar ekansiz ushangga bir hol ahvolingizni surab quyay deyuvdim. yozib turing tanishamiz. meniyam ismim Umed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment