LFCS

LFCS practice questions, page 4 of 11, with answer review and explanations.

Question 16

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

  1. systemd.target=rescue.target
  2. systemd.runlevel=rescue.target
  3. systemd.service=rescue.target
  4. systemd.default=rescue.target
  5. systemd.unit=rescue.target

Question 17

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

  1. kill -HUP $(pidof grub)
  2. grub-install
  3. grub
  4. No action is required

Question 18

Which of the following commands is used to update the list of available packages when using dpkg based package management?

  1. apt-get update
  2. apt-get upgrade
  3. apt-cache update
  4. apt-get refresh
  5. apt-cache upgrade

Question 19

Which of the following commands lists the dependencies of a given dpkg package?

  1. apt-cache depends-on package
  2. apt-cache dependencies package
  3. apt-cache depends package
  4. apt-cache requires package

Question 20

Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

  1. hidemenu
  2. splash
  3. timeout
  4. showmenu