Random password generator: many, in columns, on command line, in Linux

Sounds like you want pwgen.

alt text

There are also some interesting ways to do this without installing additional software, but the 5-letter command is a bit easier to remember :)


According to your example output pwgen is a good guess (see the answer of John T). But there are many such tools available:

  • pwgen - generate pronounceable passwords
  • gpw - program to generate pronounceable passwords
  • apg - generates several random passwords

Also password managers such as KeePassX provide a passwort generator (but it does not focus on commandline usage nor on pronouncable passwords).


No need to install extra packages as OpenSSL should be installed on most machines. we can use the following code to generate an random password:

openssl rand -base64 10