/dev/joschi

Ramblings, rants, and rabid speculations

Quick Tip: Generate Random Passwords Under Linux (2)

A shorter variant of the quick hack described in an older article:

LENGTH=32; echo $(tr -dc '[:alnum:]' < /dev/urandom | head -c $LENGTH)

The echo call is optional and is only used to generate a newline after the output.

linux

Comments