Random Passwort on Linux
2021-11-29 22:55:56
1 minutes read
Open your terminal
If you use bash type
vim ~/.bashrc
If you use zsh type
vim ~/.zshrc
Go to end of file, press o
and paste string
alias passgen="openssl rand -base64 32 | sed 's/[^a-zA-Z0-9]//g'"
For exit vim pess Esc
, then :x
+ Enter
Finally, if you need generate random password, just type command passgen
in your terminal!
Enjoy)