#TrapCTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown-t3-rnow
id:3:initdefault:
10:3:wait:/etc/rC.d/rc3
第1题:
A./etc/rc.tcpip
B./sbin/rc.boot
C./etc/rc.net
D./etc/rc.d
第2题:
阅读以下说明,回答问题1至问题8,将解答填入答题纸对应的解答栏内。
【说明】
Linux系统开机引导时首先启动内核,由内核检查和初始化硬件设备,载入设备的驱动程序模块,安装root文件系统,然后内核将启动一个名为init的进程。在init运行完成并启动其它必要的后续进程后,系统开始运行,引导过程结束。init进程启动时需要读取inittab配置文件,该文件确定init在系统启动和关机时的工作特性。典型的inittab文件内容见以下清单:
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Default runlevel. The runlevels used by RIdS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, ifyou do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 -X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
# System initialization.
si::sysinit:/et~/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'/ete/rc.d/re 3
14:4:wait:/etc/rc.d/rc 4
15:5:wait:/etc/rc.d/rc 5
16:6:wait:/et~/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::poweffail:/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 mnlevels
1:2345:respawn:/sbin/mingetty tty 1
2:2345:respawn:/sbin/mingetty tty2
3:2345 :respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty try4
5:2345:respawn:/sbin/mingetty try5
6:2345:respawn:/sbin/mingetty try6
# Run xdm in runlevel 5
x:5 :respawn:/etc/X11/prefdm -nodaemon
【问题1】(2分)
启动init进程前,不需要经过___(1)___步骤。
A.LILO加载内核 B.检测内存 C.加载文件系统 D.启动网络支持
【问题2】(2分)
inittab文件存放在___(2)___目录中。
A./etc B./boot C./sbin D./root
【问题3】(2分)
Linix系统运行级别3 工作在___(3)___状态。
A.单用户字符模式 B.多用户字符模式
C.单用户图形模式 D.多用户图形模式
【问题4】(2分)
根据说明中inittab文件的内容,系统引导成功后,工作在___(4)___状态。
A.单用户字符模式 B.多用户字符模式
C.单用户图形模式 D.多用户图形模式
【问题5】(2分)
在系统控制台,___(5)___用Ctrl+Alt+Delete组合键来重新引导服务器。
A.允许 B.不允许
【问题6】(2分)
假设root用户执行“init0”命令,系统将会___(6)___。
A.暂停 B.关机 C.重新启动 D.初始化
【问题7】(2分)
root用户执行“psauxlgrepinit”’命令,得到init的PID是___(7)___。
A.0 B.1 C.2 D.3
【问题8】(1分)
根据上述inittab文件的内容,系统在引导过程结束前,至少还要执行___(8)___进程。
A. rc.sysinit
B. rc.sysinit 和 rc 5
C. rc.sysinit, rc0, rcl, rc2, rc3, re4, rc5和qlrc6
D. rc0, rcl, rc2, rc3, rc4, rc5和glrc6
第3题:
第4题:
Linux系统下,为了使得Control+Alt+Del关机键无效,需要注释掉下列的行:ca::ctrlaltdel:/sbin/shutdown–t3–rnow。该行是包含于下面哪个配置文件的()。
第5题:
在linux系统中,要设置本机计算机名,并在系统重启后无须重新配置,应修改()文件。
第6题:
在Linux系统中,提供DHCP服务的程序是()。
第7题:
The system hangs at boot time after starting NFS services.What is the most likely cause?()
第8题:
如果想在Linux下实现热启,应当修改/etc/inittab下的哪一行()。
第9题:
#TrapCTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown-t3-rnow
id:3:initdefault:
10:3:wait:/etc/rC.d/rc3
第10题:
The action parameter of rcnfs in /etc/inittab is 'off' and the script called is not exiting.
The action parameter of rcnfs in /etc/inittab is 'wait' and the script called is not exiting.
The action parameter of rcnfs in /etc/inittab is 'once' and the script called is not exiting.
The action parameter of rcnfs in /etc/inittab is 'respawn' and the script called is not exiting.
第11题:
/etc/ hosts
/etc/ sysconfig/ network
/etc/ sysconfig/ network-scripts/ ifcfg-eth0
/etc/ rc.d/init.d/ network
第12题:
The action parameter of rcnfs in /etc/inittab is ’off’ and the script called is not exiting.
The action parameter of rcnfs in /etc/inittab is ’wait’ and the script called is not exiting.
The action parameter of rcnfs in /etc/inittab is ’once’ and the script called is not exiting.
The action parameter of rcnfs in /etc/inittab is ’respawn’ and the script called is not exiting
第13题:
● 为保证在启动 Linux 服务器时自动启动 DHCP 进程,应在 (34) 文件中将配置项dhcpd=no改为dhcpd=yes。
(34)
A. /etc/rc.d/rc.inet1
B. /etc/rc.d/rc.inet2
C. /etc/dhcpd.conf
D. /etc/rc.d/rc.s
第14题:
在Linux环境下,编辑哪个文件可以设置默认的运行级别?
A. /etc/grub.conf
B./etc/lilo.conf
C./etc/runlevel
D. /etc/inittab
第15题:
第16题:
下列文件中不是Linux下的网络配置文件的是()。
第17题:
下列哪一个目录下存储的脚本用来在重起系统时被init进程执行?()
第18题:
Linux系统的帐号文件由哪些组成()。
第19题:
The system hangs at boot time after starting NFS services. What is the most likely cause?()
第20题:
Linux启动的第一个进程init启动的第一个脚本程序是()。
第21题:
/etc/rC.d/init.d
/etc/rC.d/rC.sysinit
/etc/rC.d/rc5.d
D./etc/rd/rc3.d
第22题:
/etc/rC.d/rc0.d
/etc/rC.d/rc1.d
/etc/rC.d/rc3.d
D./etc/rd/rc6.d
第23题:
/etc/sysconfig/network
/etc/sbin/hostname
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/resolv.conf
第24题:
/etc/rc.tcpip
/sbin/rc.boot
/etc/rc.net
/etc/rc.d