Skip to content

Instantly share code, notes, and snippets.

View stschulte's full-sized avatar

Stefan Schulte stschulte

View GitHub Profile
@stschulte
stschulte / password.md
Last active January 22, 2023 19:00
Generate a password

The following command creates a random password with 29 characters:

LC_ALL=C tr -cd '[:alnum:]' < /dev/urandom|fold -w 29 |head -1

To include special characters:

LC_ALL=C tr -cd '[:graph:]' < /dev/urandom|fold -w 29 |head -1