Monday, September 5, 2011

[Linux] Create a random password.

cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 10 | head -n 1

tr=type of characters
fold=length of password

No comments:

Post a Comment