第一步:通过/boot/vm
进行启动vmlinuz
第二步:init /etc/inittab
第三步:启动相应的脚本,并且打开终端
rc.sysinit
rc.d(里面的脚本)
rc.local(以root执行)
第四步:启动login登录界面 login
第五步:在用户登录的时候执行sh脚本的顺序,每次登录的时候都会完全执行的
/etc/profile.d/file
/etc/profile(全局环境变量)
/etc/bashrc (debain系为/etc/bash.bashrc)
/root/.bashrc
/root/.bash_profile
自 http://blog.aizhet.com/Linux/10074.html
拓展 https://wido.me/sunteya/understand-bashrc-and-profile
网友评论