Created
September 7, 2022 03:03
-
-
Save phamquocbuu/ebd53500208c252430451c7fb869178d to your computer and use it in GitHub Desktop.
Generate Random String in Bash
This file contains hidden or 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
alias rando="cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20; echo;" | |
alias randoo="cat /dev/urandom | tr -dc '[a-zA-Z0-9-_+=]\/}{' | fold -w ${1:-20} | head -n 1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment