分类: LINUX
2012-02-09 11:30:13
参考:
http://andrew.sayya.org/blog/?p=520
http://menjoy.javaeye.com/blog/258398
mbr-----grub------menu.lst------vmlinuz(linux)------initrd----etc/inittab----/etc/rc.status----/etc/sysconfig/boot
------/etc/init.d/boot.d/*--------/etc/init.d/boot.local--------/etc/rc.d/rc*.d/*-----mingetty-----login----/etc/profile.d/*
------/etc/profile----/etc/profile.local------~/.bash_profile~/.bash_login~/.profile----~/.bashrc----
.bash_profile和.bash_login以及.profile只会执行其中一个。
搜索顺序以.bash_profile->.bash_login->.profile这样的顺序进行。
如果有前者就不执行后者。