How To Generate Passwords

Secure passwords can be generated with the pwgen command. By default, it will print 160 8 character passwords, but for demonstration purposes we’ll limit it to printing four passwords:

$ pwgen -N 4
Phia2eik Thee9meo aeTh6noo yie3Bi0j

If you want more obscure passwords, try this command:

$ pwgen -csny -N 4
Y.7u@pbi Y>A%^R7] <aN(F:7! [+Q<7bAB

Full details of are in the pwgen(1) man page, which you can access with:

man pwgen

Back to Linux Tips and Advice

© 2012 Tiger Computing Ltd, Wyastone Business Park, Wyastone Leys, Monmouth, NP25 3SR | Legal | Sitemap