Easy way to use SSH

Edit bashrc:
# nano /etc/bashrc

And add some aliases to it:

alias somescript="/path/to/script/excutable/script"
alias l="ls -l"
alias ns="netstat -lpn"
alias sqldir="cd /var/lib/mysql"
alias home="cd /home/"

Now you just need to write the alias name on command line on SSH to execute the full command.

0 Comments: