A terminal command we used to generate random passwords. Passwords are 8 characters, but if you want them to be of a different size we can make change for the-c8-c12, for example, 12-character passwords.

The command looks like this:

echo `cat /dev/urandom |tr -dc "[:alnum:]" | head -c8`