HowTo generate secure passwords using pwgen

sudo aptitude install pwgen

pwgen can generate safe passwords for you. It is a command line tool and can be used like this:

pwgen -s -y 8 1

-s means create a secure password, -y means it should contain at least one special character, 8 means it should be 8 characters long, and 1 means generate only one password. The output is (as an example):