登录shell与非登录shell读取文件过程

登录shell与非登录shell读取文件过程
登录:/etc/profile→/etc/profile.d/*.sh        ~/.bash_profile
非登录:~/.bash_profile→~/.basfrc→/etc/bashrc
#soure .bash_profile        手动更新
/etc/profile            通用的有效环境变量
/etc/profile.d/*.sh    软件包特有的环境变量
~/.bash_profile        用户特有的环境变量
~/.bashrc            用户特有的别名、shell功能和shell选项
/etc/bashrc            通用别名、shell功能和shell选项

原文地址:https://www.cnblogs.com/jim-hwg/p/4606789.html