经常修改/etc/initab文件,其实也就是修改启动的runlevel而已.其实
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
我们不需要这么多的terminal,可以注释掉一些我把tty4到6给注释了,可以提高点性能^_^.
/sbin/telinit is linked to /sbin/init. It takes a one-character argument and signals init to
perform the appropriate action. The following arguments serve as directives to telinit:
0,1,2,3,4,5 or 6
tell init to switch to the specified run level.
a,b,c tell init to process only those /etc/inittab file entries having runlevel a,b or c.
Q or q tell init to re-examine the /etc/inittab file.
S or s tell init to switch to single user mode.
U or u tell init to re-execute itself (preserving the state). No re-examining of /etc/inittab
file happens. Run level should be one of Ss12345, otherwise request would be silently
ignored.
觉得init q有点小意思,就记载这里了,也算点小小的心得体会把
阅读(675) | 评论(0) | 转发(0) |