Ch18 Runlevels Exam

  1. For traditional init, the _____ file is where the initial default runlevel is defined.

    • /etc/init
    • /etc/sysinit
    • /etc/initdefault
    • /etc/inittab
  2. Instead of using traditional runlevels, systemd uses:

    • Variables
    • Targets
    • Functions
    • States
  3. On a Ubuntu system, what variable defines the default runlevel in the /etc/init/rc-sysinit.conf file?

    • DEFAULT
    • DEFAULT_RUNLEVEL
    • RUNLEVEL
    • RUN
  4. The same set of services are started or stopped at different runlevels. True or False?

    • True
    • False
  5. What option to the who command will display the current runlevel?

    • -t
    • -r
    • -s
    • -a
  6. 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
  7. Which command is used to view the services that are set to start or stop automatically?

    • initconfig
    • config
    • lsconfig
    • chkconfig
  8. Which command will display both the current runlevel and the previous runlevel?

    • runlevel
    • run
    • level
    • rl
  9. Which directories exist in the /etc/rc.d directory?

    • rc0.d, rc2.d, rc4.d, and rc6.d
    • rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d and rc6.d
    • rc0, rc1, rc2, rc3, rc4, rc5 and rc6
    • rc0d, rc1d, rc2d, rc3d, rc4d and rc5d
  10. Which is the default runlevel for Debian based Linux systems?

    • 4
    • 3
    • 2
    • 5
  11. 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
  12. Which of the following commands can be used to halt the system? (choose two)

    • shutdown
    • poweroff
    • haltre
    • boot
  13. Which of the following commands is used as a traditional replacement for the init process?

    • sudo
    • systemctl
    • iostat
    • ioctl
  14. Which of the following commands is used to view the status of all services?

    • systemctl --all
    • systemctl -l
    • systemctl --l
    • systemctl --a
  15. 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
  16. 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
  17. 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
  18. Which of the following is not a Linux boot system?

    • init
    • systemd
    • bootup
    • upstart
  19. 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
  20. Which runlevel number defines halting the system?

    • 0
    • 1
    • 3
    • 2
    • 4
    • 6
    • 5
  21. Instead of using traditional runlevels, sysyemd uses:

    • Variables
    • Targets
    • Functions
    • States
    • 2
    • 1
    • 0
  22. Which runlevel number defines multi-user with networking services and no GUI?

    • 2
    • 1
    • 3
    • 4
    • 0
    • 5
    • 6
  23. Which runlevel number defines multi-user with no networking services?

    • 1
    • 0
    • 3
    • 2
    • 4
    • 5
    • 6
  24. Which runlevel number defines rebooting the system?

    • 2
    • 5
    • 4
    • 3
    • 1
    • 0
    • 6
  25. Which runlevel number is defined as user-definable?

    • 0
    • 2
    • 6
    • 3
    • 1
    • 5
    • 4
  26. Which program would be used to notify the user of a low battery on a Linux laptop computer?

    • acpid
    • rpoweroff
    • systemctl
    • chkconfig
  27. 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
  28. What directory contains information about symbolic links that enable services?

    • /usr/lib/systemd
    • /proc/acpi
    • /etc/init.d/httpd
    • /etc/rc.d