Skip to content

Instantly share code, notes, and snippets.

@ekhabarov
Created February 25, 2016 14:30
Show Gist options
  • Select an option

  • Save ekhabarov/cfe8c72a6d2a30662009 to your computer and use it in GitHub Desktop.

Select an option

Save ekhabarov/cfe8c72a6d2a30662009 to your computer and use it in GitHub Desktop.
Generate random password in bash
#!/bin/bash
pass=`LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | dd bs=100 count=1 2>/dev/null | head -c 16`
echo $pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment