Here is a quick one line command to generate a random password from the Linux command line.

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

If you want a password length longer than 6, changing the -c6 to read -c8 will give you 8 random characters instead of 6.

Popularity: 9% [?]

Tagged with:

Filed under: Linux

Like this post? Subscribe to my RSS feed and get loads more!