系統啟動時,進入/etc/inittab中initdefault所定義的運行級別(deafult 3)各運行級別的定義:
run level:
0, (halt, shotdown, stop+a,sync,go )
1, (single user, boot -s, init s )
2, (multiuser, unshare net)
3, (multiuser, deafult)
5, (halt, power off )
6, (reboot to level 3 )
S (init 1, boot -s)
改變系統運行級別命令:
# init 0, halt, shotdown, stop+a,sync,go
# init 1, single user, boot -s, init s
# init 2, multiuser, unshare net
# init 3, multiuser, deafult
# init 5, halt, power off
# init 6, reboot to level 3
# init s, init 1, boot -s
# init *,shutdown,halt,poweroff, reboot -- -r, reboot -- -s
ok> boot -s, boot -sra