Skip to content

Instantly share code, notes, and snippets.

@BradGunnerSGT
Last active July 7, 2017 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BradGunnerSGT/0f93cc65ba8ca6802c777937d7c03929 to your computer and use it in GitHub Desktop.
Save BradGunnerSGT/0f93cc65ba8ca6802c777937d7c03929 to your computer and use it in GitHub Desktop.
Create a long random password on the Linux command line
#!/bin/bash
TMPFILE=`/usr/bin/env mktemp`
dd count=1 bs=10M if=/dev/urandom of=$TMPFILE > /dev/null 2>&1 && md5sum $TMPFILE | awk '{print $1 }'
rm -f $TMPFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment