Generate random strings

Problem :

Needed random strings, characters from one liner bash to use on password.

Solution :

< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c8

(take note of the first symbol? less then, it is suppose to be there).

the above command will generate a 8 random character.

Related posts:

  1. How To Generate a Certificate Signing Request (CSR) for an SSL Certificate This short tutorial is for Apache2.x + OpenSSL It’s advice...
  2. Generate apache SSL Sign Key Quick Tips for Apache’s SSL generate new key openssl req...
  3. bash – dealing with backtics ” ` ” in mysql statement problem : using backticks in bash for mysql statements. e.g....

Leave a Reply