好奇的探索者,理性的思考者,踏实的行动者。
Table of Contents:
alias
查看所有alias
Before beginning, create a file called ~/.bash_alias:
$ touch ~/.bash_alias
Then, make sure that this code appears in your ~/.bashrc file:
if [ -e $HOME/.bash_alias ]; then
source $HOME/.bash_alias
fi
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias cmake='cmake3'
alias ll="ls -lha
## get rid of command not found ##
alias cd..='cd ..'
## a quick way to get out of current directory ##
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
- Bash aliases you can’t live without
- 30 Handy Bash Shell Aliases For Linux / Unix / MacOS