2486 shaares
83 private links
83 private links
I would like to generate a random string (e.g. passwords, user names, etc.). It should be possible to specify the needed length (e.g. 13 chars).
head /dev/urandom | tr -dc A-Za-z0-9 | head -c13
where head dictates how many characters you get.
You can then e.g. pipe it into an echo
command or into a clipboard program or similar.