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
posted @ 2018-10-15 13:31  想翻身的猫  阅读(281)  评论(0编辑  收藏  举报