您的位置:首页 > 运维架构 > Shell

linux:/用户/.bashrc 保存别名永久生效

2015-11-05 10:37 639 查看
[root@localhost ~]# cat /root/.bashrc

# .bashrc

# User specific aliases and functions

#下面就是bashell保存的别名的地方,要想增加永久的别名我们可以在这里增加

alias rm='rm -i'

alias cp='cp -i'

alias mv='mv -i'

# Source global definitions


#下面的语句是判断 /etc/bashrc 是否存在,如果存在的话执行 里面的脚本

if [ -f /etc/bashrc ]; then

. /etc/bashrc

fi

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: