Add an alias to your shell on Linux

Last updated:

open the config file:

sudo vim ~/.bashrc

add your alias, for example:

alias ss='ssh user@remote_host'

or

alias www='cd /var/www'

save file, close shell and re-open shell

Dialogue & Discussion