Found the image above from another site. Loved the design and I wanted to use it. I DO NOT own the copyright for the above image

I really like the automatic password generation on OSX and I decided to modify my existing command line password generation script to output passwords just like OSX. Below are the steps I used to create the script for generating random passwords in the commandl ine.

  • Create a new blank file in $HOME/bin/makepasswd.
  • Enter the following into the file
  • Save and quit the file.
  • Make the file executable using the following command chmod 755 $HOME/bin/makepasswd
  • Try it out makepasswd

Sample run of the above command


Have fun generating secure passwords! Cheers :D