阅读以下说明,回答问题。 [说明]Linux系统开机引导时首先启动内核,由内核检查和初始化硬件设备,载入设备的驱动程序模块,安装root文件系统,然后内核将启动一个名为init的进程。在init运行完成并启动其他必要的后续进程后,系统开始运行,引导

admin2015-05-07  25

问题 阅读以下说明,回答问题。
    [说明]Linux系统开机引导时首先启动内核,由内核检查和初始化硬件设备,载入设备的驱动程序模块,安装root文件系统,然后内核将启动一个名为init的进程。在init运行完成并启动其他必要的后续进程后,系统开始运行,引导过程结束。init进程启动时需要读取inittab配置文件,该文件确定init在系统启动和关机时的工作特性。典型的inittab文件内容见以下清单。
    #
    # inittab This fi le describes how the INIT proces S should set up
    #   ’    the systern in a certain run-level.
    #
    #  Default runlevel.The runlevelS used by RHS are:
    #  0-halt(Do NOT set initdefault to thiS)
    #  1-Single user mode
    #  2-Multiuser,without NFS(The same as 3,if you do not have networking)
    #  3-Full multiuSer mode
#  4-unused
  #    5一X11
    #  6-reboot(Do NOT set initdefault to thiS)
  #
    id:5:initdefauit:
    # System initialization.
  si::sysinit:/etc/rc.d/rc.sysinit
  10:0:wait:/etc/rc.d/rc 0
  11:1:wait:/etc/rc.d/rc 1
  12:2:wait:/etc/rc.d/rc 2
  13:3:wait:/etc/rc.d/rc 3
  14:4:wait:/etC/rc.d/rc 4
  15:5:wait:/etc/rc.d/rc 5
  16:6:wait:/etc/rc.d/rc 6
  #Trap CTRL—ALT—DELETE
  ca::ctrlaltdel:/sbin/shutdown-t3-r now
  #When our UPS tells US power has failed,assume we have a few minutes
  #of power left.Schedule a shutdown for 2 minutes from now•
  #This does,  of course,  assume you have powerd installed and your
  #UPS connected and working correctly
  pf::powerfail:/sbin/shutdown-f-h+2"Power Failure;System Shutting Down"
  #  If power was  restored before the  shutdown  kicked in,  cancel  it
  pr:12345:powerokwait:/sbin/shutdown—c"Power Restored;Shutdown Cancelled"
  #Run gettys in standard runlevels
  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
  #Run xdm in runlevel 5
  X:5:respawn:/etc/X11/prefdm-nodaemon
根据说明中inittab文件的内容,系统引导成功后,工作在(4)状态。
    A.单用户字符模式
    B.多用户字符模式
    C.单用户图形模式
    D.多用户图形模式

选项

答案D

解析
转载请注明原文地址:https://kaotiyun.com/show/U5PZ777K
0

最新回复(0)