One Liners: Generate random password

Basic command:

tr -dc "a-zA-Z0-9" < /dev/urandom | head -c 32

Print it to STDOUT:

echo $(tr -dc "a-zA-Z0-9" < /dev/urandom | head -c 32)

Save it in an environment variable:

export SECRET_PASSWORD=$(tr -dc "a-zA-Z0-9" < /dev/urandom | head -c 32)