/etc/profile :系统的所有用户共享
~/.bash_profile:仅针对当前用户有效
我的电脑只用于开发,因此全部配置/etc/profile
参考链接:
https://blog.csdn.net/ithomer/article/details/6322892
https://blog.csdn.net/qq_41044525/article/details/78894903
/etc/profile ~/.bash_profile ~/.bashrc 等文件的执行过程 和 区别
原文:https://www.cnblogs.com/wooluwalker/p/9128571.html