201-450 : LPIC-2 Exam 201 : Part 02

  1. How can the label root be added to the ext4 filesystem on /dev/sda1?

    • relabel /dev/sda1 root
    • tune2fs –L root /dev/sda1
    • echo ‘root’ > /proc/fs/sda1/label
    • labelfs --device /dev/sda1 root
  2. Which sub command to crypsetup shows information about an encrypted LUKS partition?

    • luksDump
    • luksInfo
    • luksDebug
    • luksLS
    • luksShow
  3. Which of the following is a CD-ROM filesystem standard?

    • OSI 9660
    • ISO 9660
    • SR0FS
    • ISO 8859
    • ROM-EO
  4. Which of the following init systems comes along with an own UEFI boot loader?

    • systemd
    • SysVinit
    • Upstart
    • OpenRC
    • launchd
  5. What effect does the –f option to the update-rc.d command have on files in the /etc/rcX.d/ and /etc/init.d/ directories?

    • It will force the removal of the symlinks in /etc/rcX.d/ even when the links are read only
    • It will remove both the symlinks in /etc/rcX.d/ and the init script in /etc/init.d/
    • It will remove the init script in /etc/init.d/ and the symlinks in /etc/rcX.d/ and update the package information of installed files
    • It will force the removal of symlinks in /etc/rcX.d/ even if the corresponding init script still exists in /etc/init.d/
  6. Which command is used to install a GRUB boot loader into the master boot record?

    • grub-install
    • grub-mkconfig
    • grub-install-mbr
    • grub-glue-mbr
    • grub-mbr-setup
  7. If the file containing the Linux kernel is deleted, what happens when the system boots?

    • The system starts normally since the bootloader copies the kernel to the master boot record of the hard disk
    • Instead of the kernel, the initramfs is loaded and instructed to mount the root filesystem and reinstall the kernel from the original package or from source
    • The bootloader mounts the root filesystem read-only and launches /bin/sh directly in order to allow the administrator to reinstall the kernel
    • Without a kernel system cannot boot and, depending on the bootloader, an error is displayed
  8. FILL BLANK

    Which directory contains system-specific systemd unit files? (Specify the full path to the directory.)

    • /lib/systemd/system
  9. A Linux server running systemd booted to rescue.target for maintenance. Which commands are used to restore the server to its usual target? (Choose two.)

    • telinit 0
    • systemctl default
    • sync
    • systemctl emergency
    • systemctl reboot
  10. FILL BLANK

    Which is the main configuration file for the SystemV init process? (Specify the full name of the file, including path.)

    • /etc/inittab
  11. What is the purpose of an initramfs during the Linux system start?

    • It loads required modules and starts sub sytems like LVM to make the root file system accessible to the kernel
    • It moves the kernel from normal system memory to initram memory to speed up kernel access
    • It copies the root file system’s content to RAM to speed up the system and reduce writes to disk
    • It creates a ram disk to store volatile data for directories like /tmp to reduce writes to disk
  12. Which of the following is a userspace application used to modify EFI entries on a Linux system?

    • efieditor
    • configefi
    • efimanager
    • efiboottmgr
    • efibootedit
  13. In which directory tree are files modified when changing kernel parameters using the command sysctl?

    • /sys/kernel/
    • /proc/kernel/
    • /proc/sys/
    • /lib/sys/
    • /sys/proc/
  14. What is the purpose of the command udevadm monitor?

    • It listens to kernel events produced by a udev rule and prints information to the console
    • It monitors the /dev/ directory for new devices
    • It monitors the udev process and prints performance statistics to the console
    • It communicates with D-Bus to setup new devices
  15. How is the source code for the main Linux kernel modules distributed?

    • It is included with the Linux kernel source code
    • The kernel modules are downloaded on demand as they are used during compilation
    • The kernel modules have their own release cycle and can be maintained separately from the Linux kernel source
    • It is provided as a separate download alongside the Linux kernel source code for the same version
  16. After the downloading patch-4.6.4.xz from http://kernel.org, what are the next steps to prepare the build of a version 4.6.4 Linux kernel? (Choose two.)

    • Uncompress the file and move the resulting directory to /usr/src/linux
    • Apply the patch file to the kernel source directory containing kernel version 4.6.0
    • Apply the patch file to the kernel source directory containing kernel version 4.6.3
    • Uncompress the file using xz to get the uncompressed patch file
    • Use patch to apply the uncompressed patch file to the source directory of any previous kernel version
  17. After manually compiling and installing a new kernel, what has to be done regarding the initramfs?

    • To initramfs is independent of the kernel and should not be modified unless the hardware configuration of the machine has changed
    • Since the initramfs contains kernel modules, a new initramfs must be built for the new kernel
    • During the compilation of the Linux kernel, a new initramfs is built automatically. The new initramfs only needs to be installed 
    • The system should be restarted since the initramfs reconfigures itself for the new kernel during the startup of the system
  18. Which of the following commands displays the physical path of the kernel module named dummy?

    • modprobe –i dummy
    • modinfo –n dummy
    • modpath –v dummy
    • depmod –n dummy
    • modshow –p dummy
  19. Which of the following parameters instructs the kernel at boot time to use only one of the available processors?

    • maxcpus=1
    • usecpus=1
    • smpcpus=1
    • vcpumx=1
    • vmxcpus=1
  20. FILL BLANK

    After installation of a self-compiled kernel, modules that need to be loaded cannot be found. What make target was likely missed while installing the kernel? (Specify ONLY the make target without any command or parameters.)

    • modules_install
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments