LPI 201-450 practice test

Exam Title: LPIC-2 (201) Exam

Last update: Aug 14 ,2025
Question 1

Which of the following commands displays the physical path of the kernel module named dummy?

  • A. modprobe –i dummy
  • B. modinfo –n dummy
  • C. modpath –v dummy
  • D. depmod –n dummy
  • E. modshow –p dummy
Answer:

A

vote your answer:
A
B
C
D
E
A 1 B 1 C 0 D 0 E 0
Comments
1 year, 1 month ago

modinfo -n --filename Print only 'filename'

Question 2

After manually compiling and installing a new kernel, what has to be done regarding the initramfs?

  • A. To initramfs is independent of the kernel and should not be modified unless the hardware configuration of the machine has changed
  • B. Since the initramfs contains kernel modules, a new initramfs must be built for the new kernel
  • C. During the compilation of the Linux kernel, a new initramfs is built automatically. The new initramfs only needs to be installed
  • D. The system should be restarted since the initramfs reconfigures itself for the new kernel during the startup of the system
Answer:

C

vote your answer:
A
B
C
D
A 1 B 1 C 1 D 1
Comments
Question 3

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.)

  • A. Uncompress the file and move the resulting directory to /usr/src/linux
  • B. Apply the patch file to the kernel source directory containing kernel version 4.6.0
  • C. Apply the patch file to the kernel source directory containing kernel version 4.6.3
  • D. Uncompress the file using xz to get the uncompressed patch file
  • E. Use patch to apply the uncompressed patch file to the source directory of any previous kernel version
Answer:

D, E

vote your answer:
A
B
C
D
E
A 0 B 0 C 1 D 2 E 2
Comments
Question 4

In which directory tree are files modified when changing kernel parameters using the command
sysctl?

  • A. /sys/kernel/
  • B. /proc/kernel/
  • C. /proc/sys/
  • D. /lib/sys/
  • E. /sys/proc/
Answer:

C

vote your answer:
A
B
C
D
E
A 0 B 0 C 2 D 0 E 0
Comments
Question 5

Which of the following is a userspace application used to modify EFI entries on a Linux system?

  • A. efieditor
  • B. configefi
  • C. efimanager
  • D. efiboottmgr
  • E. efibootedit
Answer:

D

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 2 E 0
Comments
Question 6

What is the purpose of an initramfs during the Linux system start?

  • A. It loads required modules and starts sub sytems like LVM to make the root file system accessible to the kernel
  • B. It moves the kernel from normal system memory to initram memory to speed up kernel access
  • C. It copies the root file system’s content to RAM to speed up the system and reduce writes to disk
  • D. It creates a ram disk to store volatile data for directories like /tmp to reduce writes to disk
Answer:

A

vote your answer:
A
B
C
D
A 2 B 0 C 0 D 0
Comments
Question 7

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

Answer:

/etc/inittab

vote your answer:
Comments
1 year, 1 month ago

/etc/inittab

Question 8

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.)

  • A. telinit 0
  • B. systemctl default
  • C. sync
  • D. systemctl emergency
  • E. systemctl reboot
Answer:

A, B

vote your answer:
A
B
C
D
E
A 0 B 2 C 0 D 1 E 1
Comments
1 year, 1 month ago

We can reset system or return a default runlevel. The correct options are B systemctl default and E systemctl reboot. The A option telinit 0 make power down.

Question 9

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

Answer:

/lib/systemd/system

Comments
Question 10

Which command is used to install a GRUB boot loader into the master boot record?

  • A. grub-install
  • B. grub-mkconfig
  • C. grub-install-mbr
  • D. grub-glue-mbr
  • E. grub-mbr-setup
Answer:

A

vote your answer:
A
B
C
D
E
A 2 B 0 C 0 D 0 E 0
Comments
Question 11

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?

  • A. It will force the removal of the symlinks in /etc/rcX.d/ even when the links are read only
  • B. It will remove both the symlinks in /etc/rcX.d/ and the init script in /etc/init.d/
  • C. 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
  • D. It will force the removal of symlinks in /etc/rcX.d/ even if the corresponding init script still exists in /etc/init.d/
Answer:

D

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 2
Comments
Question 12

Which of the following init systems comes along with an own UEFI boot loader?

  • A. systemd
  • B. SysVinit
  • C. Upstart
  • D. OpenRC
  • E. launchd
Answer:

A

vote your answer:
A
B
C
D
E
A 2 B 0 C 0 D 0 E 0
Comments
Question 13

Which sub command to crypsetup shows information about an encrypted LUKS partition?

  • A. luksDump
  • B. luksInfo
  • C. luksDebug
  • D. luksLS
  • E. luksShow
Answer:

A

vote your answer:
A
B
C
D
E
A 2 B 0 C 0 D 0 E 0
Comments
Question 14

Fill in the blank:
What command ensures that the file systems are written to disk after a lot of write operations?
(Specify ONLY the command without any path or parameters.)

Answer:

sync

vote your answer:
Comments
Question 15

What is the purpose of a system mount unit?

  • A. It is used by the command systemd-mount and allows users to mount partitions to mount points of their choice
  • B. It is used only to mount network file systems to local mount points. It cannot be used for local media
  • C. It is created by the command systemd-fstab-generator to integrate entries from /etc/fstab into the system boot process
  • D. It is used by the command mount when using system to mount and unmount file systems
Answer:

A

vote your answer:
A
B
C
D
A 2 B 0 C 0 D 0
Comments
Page 1 out of 11
Viewing questions 1-15 out of 161
Go To
page 2