Computer Tips - Linux: How can I generate a random password

Date: 2000may29 Updated: 2016jun14 OS: Linux Language: bash Q. Linux: How can I generate a random password A. This chain of Linux commands does the trick:
$ head -c8 /dev/random | base64 | sed -e 's/=$//' jlFUjmNqP/E
Change -c8 to get more characters This is pretty good but there is little punctuation in the password. Only upper and lowercase letters, digits, plus and slash.