哪些script在user logon的时候会执行,先后次序是怎样的?

哪些script在user logon的时候会执行,先后次序是怎样的?

看了好几本书,都没有找到一个满意的答案,哪位老大提点一下?

/etc/profile
/etc/bashrc
$HOME/.bashrc
$HOME/.bash_profile

1)还有别的吗?
2)他们之间的关系是怎样的?即哪个先执行,哪个后执行
3)如果某个环境变量在两个script中都有,是不是后面的覆盖前面的?

谢      
These are the the configuration files we are going to custimise:
/etc/profile
/etc/bashrc
.bashrc
.bash_profile
.bash_logout
.inputrc
.less
.lessrc
.xinitrc
.fvwmrc
.fvwm2rc95
.Xmodmap
.Xmodmap.num
.Xdefaults
.jedrc
.abbrevs.sl
.joerc .emacs

Don't add users until you have completed your system configuration; you'll put the dot files in /etc/skel.

Arguably, the most important piece of software after the kernel. To tailor the behaviour of bash, these are
the main files to edit:
/etc/bashrc contains system wide aliases and functions;  
/etc/profile contains system wide environment stuff and startup programs;  
$HOME/.bashrc contains user aliases and functions; ?
$HOME/.bash_profile contains user environment stuff and startup programs;
$HOME/.inputrc contains key bindings and other bits.


good luck      
thanks a lot!