Linux开机启动

开机启动模式

1 vi /etc/inittab
2 id:3:initdefault:    # 3为多用户命令
3 #ca::ctrlaltdel:/sbin/shutdown -t3 -r now   # 注释此行 禁止 ctrl+alt+del 关闭计算机

 

开机启动脚本顺序

1 /etc/profile
2 /etc/profile.d/*.sh
3 ~/bash_profile
4 ~/.bashrc
5 /etc/bashrc

 

grub开机启动项添加

1 vim /etc/grub.conf
2 title ms-dos
3 rootnoverify (hd0,0)
4 chainloader +1

 

posted @ 2019-09-17 10:40  凌空a  阅读(330)  评论(0编辑  收藏  举报