| MKPASS(1) | General Commands Manual | MKPASS(1) |
NAME
mkpass — make a
password
SYNOPSIS
mkpass |
[-l length]
[chars] |
DESCRIPTION
The mkpass utility allows you to easily
create randomly-generated passwords from the command-line. By default,
mkpass generates a 64-character long password of
printable characters. If specified, the generated password will only contain
characters found in chars. You may use
tr(1) range syntax, as shown in the
EXAMPLES section.
The options are as follows:
-llength- Generate a password length characters in length.
EXIT STATUS
The mkpass utility exits 0 on
success, and >0 if an error occurs.
EXAMPLES
Generate a password:
$ mkpassGenerate a password with a length of 40:
$ mkpass -l 40Generate an alphanumeric password:
$ mkpass '[:alnum:]'Generate a password containing only the lowercase letters of the latin alphabet:
$ mkpass a-zSEE ALSO
AUTHORS
Thomas Voss <mail@thomasvoss.com>
| April 13, 2026 | Void Linux |