Ubuntu使用alias配置命令别名

前端之家收集整理的这篇文章主要介绍了Ubuntu使用alias配置命令别名前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

猜你在找的Ubuntu相关文章