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