1、全局
etc/profile
etc/profile.d/*
etc/bashrc
2、个人
~/.bash_profile
~/.bashrc
~/.bash_history
bash的运行方式:交互式和非交互式
读取配置文件的顺序如下:
1、交互式:etc/profile ----> etc/profile.d/* ------> ~/.bash_profile --------> ~/.bashrc --------> etc/bashrc
2、非交互式:~/.bashrc ------> etc/bashrc -------> etc/profile.d/*