Ch18 Runlevels Exam
-
For traditional init, the _____ file is where the initial default runlevel is defined.
- /etc/init
- /etc/sysinit
- /etc/initdefault
- /etc/inittab
-
Instead of using traditional runlevels,
systemd
uses:- Variables
- Targets
- Functions
- States
-
On a Ubuntu system, what variable defines the default runlevel in the
/etc/init/rc-sysinit.conf
file?- DEFAULT
- DEFAULT_RUNLEVEL
- RUNLEVEL
- RUN
-
The same set of services are started or stopped at different runlevels. True or False?
- True
- False
-
What option to the
who
command will display the current runlevel?- -t
- -r
- -s
- -a
-
Where are the scripts used to manage the init process located?
- /etc/init/rc.d
- /etc/rc.init
- /rc.d/init.d
- /etc/rc.d/init.d
-
Which command is used to view the services that are set to start or stop automatically?
initconfig
config
lsconfig
chkconfig
-
Which command will display both the current runlevel and the previous runlevel?
runlevel
run
level
rl
-
Which directories exist in the
/etc/rc.d
directory?rc0.d, rc2.d, rc4.d,
andrc6.d
rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d
andrc6.d
rc0, rc1, rc2, rc3, rc4, rc5
andrc6
rc0d, rc1d, rc2d, rc3d, rc4d
andrc5d
-
Which is the default runlevel for Debian based Linux systems?
- 4
- 3
- 2
- 5
-
Which of the following can be used to restart the HTTP service? (choose two)
service httpd restart
service https restart
service start httpd
/etc/init.d/httpd restart
-
Which of the following commands can be used to halt the system? (choose two)
shutdown
poweroff
haltre
boot
-
Which of the following commands is used as a traditional replacement for the
init
process?sudo
systemctl
iostat
ioctl
-
Which of the following commands is used to view the status of all services?
systemctl --all
systemctl -l
systemctl --l
systemctl --a
-
Which of the following commands will allow you to change the system runlevel, on a system with traditional init? (choose two)
init
telinit
systemctl
chginit
-
Which of the following commands will allow you to change the system to another runlevel, on a system with Systemd? (choose two)
chginit
systemctl
init
telinitu
-
Which of the following commands will have the
httpd
service start at runlevel 5?cp /etc/init.d/httpd /etc/init.d/rc5.d
ln -s /etc/init.d/httpd /etc/rc.d/rc5.d/S85httpd
ln -s /etc/init.d/httpd /etc/rc.d/rc5.d/K85httpd
cp /etc/init.d/httpd /etc/rc.d
-
Which of the following is not a Linux boot system?
- init
- systemd
- bootup
- upstart
-
Which of the following is used to turn off the
atd
service at runlevels 2 and 4?chkconfig --level 24 atd auto off
chkconfig --level 24 atd off
chkconfig --level 24 atd disable
chkconfig --off 24 atd
-
Which runlevel number defines halting the system?
- 0
- 1
- 3
- 2
- 4
- 6
- 5
-
Instead of using traditional runlevels,
sysyemd
uses:- Variables
- Targets
- Functions
- States
- 2
- 1
- 0
-
Which runlevel number defines multi-user with networking services and no GUI?
- 2
- 1
- 3
- 4
- 0
- 5
- 6
-
Which runlevel number defines multi-user with no networking services?
- 1
- 0
- 3
- 2
- 4
- 5
- 6
-
Which runlevel number defines rebooting the system?
- 2
- 5
- 4
- 3
- 1
- 0
- 6
-
Which runlevel number is defined as user-definable?
- 0
- 2
- 6
- 3
- 1
- 5
- 4
-
Which program would be used to notify the user of a low battery on a Linux laptop computer?
acpid
rpoweroff
systemctl
chkconfig
-
How does the
acpid
command determine what action to take?- It takes instructions from the kernel
- It cannot perform any actions unless explicitly directed by root
- It monitors computer function and automatically determines the correct action
- It uses script files
-
What directory contains information about symbolic links that enable services?
- /usr/lib/systemd
- /proc/acpi
- /etc/init.d/httpd
- /etc/rc.d
Subscribe
0 Comments
Newest