- 论坛徽章:
- 0
|
1.bash处理初始化文件的顺序
if /etc/profile exists,source it,
if ~/.bash_profile exists,source it,
if ~/.bashrc exists,source it,
else if ~/.bash_login exists,source it,
else if ~/.profile exists,source it.
----------------------
| /etc/profile |
----------------------
/ | \
/ | \
/ | \
----------------------- -------------------- ---------------
| ~/.bash_profile| |~/.bash_login| |~/.profile |
----------------------- -------------------- ---------------
|
|
|
---------------------
| ~/.bashrc |
---------------------
![]()
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/44946/showart_509812.html |
|