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 cdws=’cd ~/workspace’
alias cls=’clear’
alias py=’python’
alias py3=’python3’
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