linux profileashrcash_profile之间的区别和联系

/etc/profile 每个用户,首次登录时被执行;
/etc/bashrc 每个运行bash shell的用户都执行此文件,当bsh被打开时,该文件被读取;
~/.bash_profile 专用于本用户的shell信息,仅被执行一次;
~/.bashrc 文件包含本用户的bsh信息,登录及每次打开shell时被读取。
原文地址:https://www.cnblogs.com/adong7639/p/7843193.html