vim ~/.bashrc
add your alias at the end of this file:
alias ~=’cd ~’
alias ..=’cd ..’
alias …=’cd ../..’
alias ….=’cd ../../..’
alias …..=’cd ../../../..’
alias ……=’cd ../../../../..’
alias …….=’cd ../../../../../..’
alias ……..=’cd ../../../../../../..’
alias ………=’cd ../../../../../../../..’
alias ……….=’cd ../../../../../../../../..’
alias ………..=’cd ../../../../../../../../../..’
alias cls=’clear’
alias py=’python’
alias cdhdp=’cd /usr/local/hadoop’
alias hstart=’start-dfs.sh; start-yarn.sh’
alias hstop=’stop-yarn.sh; stop-dfs.sh’
make it work:
source ~/.bashrc