alias
# .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
vim ~/.bashrc
写入相应的alias后,就可以永久生效了
另外该文件是readonly 输入:set noreadonly+:wq或者:wq!保存
保存文件后,运行:
source ~/.bashrc
原谅我这一生不羁放纵爱自由