Guides 11791 Published by

Howtogeek shows you 10 ways to generate a random password from the command line



One of the great things about Linux is that you can do the same thing hundreds of different ways?even something as simple as generating a random password can be accomplished with dozens of different commands. Here's 10 ways you can do it.
We gathered all of these commands from Command-Line Fu and tested them out on our own Linux PC to make sure they work. You should be able to use at least some of these on Windows with Cygwin installed, though we didn't test all of them?the last one definitely works though.
  10 Ways to Generate a Random Password from the Command Line