Last active
July 7, 2017 14:41
-
-
Save BradGunnerSGT/0f93cc65ba8ca6802c777937d7c03929 to your computer and use it in GitHub Desktop.
Create a long random password on the Linux command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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