Linux中profile和bashrc的区别

profile主要设置系统环境参数(可类比为Windows的系统环境变量),如$PATH

  /etc/profile

  ~/.bash_profile

bashrc主要用来设置bash命令,如命令别名,alias tnew='tmux new -s'

  /etc/bashrc

  ~/.bashrc

/etc/*  针对整个系统生效

~/   只针对当前用户生效

posted @ 2020-01-09 12:53  Alex-GCX  阅读(188)  评论(0编辑  收藏  举报