liut

liut.xyz

/etc/rc.d/rc.local 与 /etc/profile .bash_profile .bashrc 文件执行顺序

Posted at — Sep 23, 2017

第一步:通过/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

comments powered by Disqus