Random Passwort on Linux

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)

About me
Denis Vdovin
Programmer, data analyst, living in Cyprus