rdm.sh
Attachments
History
Blame
View Source
Changelog
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
A - Z
Howto
Linux
a7f20c
Commit
a7f20c
2026-04-17 04:17:21
David Marsh
: -/-
howto/linux.md
..
@@ 2,8 2,10 @@
## Passwords
-
How to make a random password from Linux CLI
+
How to make a random password from Linux CLI. Either of these work, but pwgen is a great little program.
```
-
b64encode /dev/urandom pw | fold -w 20 | head -n2 | tail -n1
+
b64encode /dev/urandom pw | fold -w 16 | head
+
openssl rand -base64 16
+
pwgen
```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9