Browse - Computer Tips - How can I generate a random password?

Date: 2000may29
Updated: 2016jun14
OS: Linux
Language: bash

Q.  How can I generate a random password?

A.  This chain of Linux commands does the trick:

head -c8 /dev/random | base64 | sed -e 's/=$//'
This is pretty good but there is no punctuation in the password. Only letters and digits.