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:
原文链接:https://www.f2er.com/ubuntu/354531.htmlsource ~/.bashrc