Last Updated: February 25, 2016
·
820
· david board

.bashrc alias & ssh

Edit .bashrc located in your $HOME directory, if it does not exist create it using your fav editor (vim).

Create a short ssh connection command:

alias aliasname='ssh -p portnumber username@ip.add.re.ss'

Something like this:

alias server1='ssh -p 555 me@123.456.789.0'

Here's a few other alias:

alias ls='ls -l --color=auto'
alias cls='clear && ls'
alias lm='ls -la| more'
alias df='df -h'
alias mv='mv -i'
alias rm='rm -i'
alias cp='cp -i'
alias delete='rm -i'