linux profile\bashrc\bash_profile之间的区别和联系

/etc/profile 每个用户,首次登录时被执行;
/etc/bashrc 每个运行bash shell的用户都执行此文件,当bsh被打开时,该文件被读取;
~/.bash_profile 专用于本用户的shell信息,仅被执行一次;
~/.bashrc 文件包含本用户的bsh信息,登录及每次打开shell时被读取。

posted on 2017-11-16 10:51  Maddock  阅读(360)  评论(0编辑  收藏  举报

导航