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

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