Random password generator

Quick one liner for you this new year…

Generate a random 8 character or greater password containing a-z, A-Z and 0-9:

egrep -ioam1 '[a-z0-9]{8}' /dev/urandom

to create longer passwords, replace the numeric value inside of the { } to whatever you would like.

egrep -ioam1 '[a-z0-9]{9}' /dev/urandom

egrep -ioam1 '[a-z0-9]{10}' /dev/urandom

egrep -ioam1 '[a-z0-9]{11}' /dev/urandom

egrep -ioam1 '[a-z0-9]{12}' /dev/urandom


I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.