Sometimes you need to set random password for some user or service. And it's not always easy to take random combination from the head. Use this simple command to automate thinking process:
echo `</dev/urandom tr -dc A-Za-z0-9 | head -c8`
Obviously, this can be tweaked to your liking by adding symbols to the list of allowed characters and changing the length of the generated password in the head options.
0 comments:
Post a Comment