Here’s 10 ways you’ve got the option to do it.

Hopefully you’re using a password manager likeLastPassanyway so you don’t need to memorize them.

Then it outputs the top 32.

10 Ways to Generate a Random Password from the Linux Command Line

This one uses openssl’s rand function, which may not be installed on your system.

Good thing there’s lots of other examples, right?

This one works a lot like the other urandom one, but just does the work in reverse.

Bash is very powerful!

Here’s an even simpler version of the urandom one.

This one manages to use the very useful dd command.

You’d probably want to put this into your ~/.bashrc file.

Yeah, that’s even easy enough to remember.

So what’s your favorite way?

Linux Commands

Files

tarpvcattacchmodgrepdiffsedarmanpushdpopdfscktestdiskseqfdpandoccd$PATHawkjoinjqfolduniqjournalctltailstatlsfstabecholesschgrpchownrevlookstringstyperenamezipunzipmountumountinstallfdiskmkfsrmrmdirrsyncdfgpgvinanomkdirdulnpatchconvertrcloneshredsrmscpgzipchattrcutfindumaskwctr

Processes

aliasscreentopnicereniceprogressstracesystemdtmuxchshhistoryatbatchfreewhichdmesgchfnusermodpschrootxargsttypinkylsofvmstattimeoutwallyeskillsleepsudosutimegroupaddusermodgroupslshwshutdownreboothaltpoweroffpasswdlscpucrontabdatebgfgpidofnohuppmap

Networking

netstatpingtracerouteipsswhoisfail2banbmondigfingernmapftpcurlwgetwhowhoamiwiptablesssh-keygenufwarpingfirewalld