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. How to View Chinese Character with iTerm in Mac OSX I guess most people use iTerm in Mac OSX, me...
  3. Change or Set User Password in FreeBSD If you notice, during FreeBSD installation, it doesn’t have a...
  4. Generate apache SSL Sign Key Quick Tips for Apache’s SSL generate new key openssl req...
  5. bash – dealing with backtics ” ` ” in mysql statement problem : using backticks in bash for mysql statements. e.g....
  6. How to Create User with useradd in FreeBSD You can invoke “adduser” command in FreeBSD in order to...
  7. Bash: How to Echo Tab and Newline While printing out result in bash, sometime we need to...

Leave a Reply