LPI 201-450 practice test

LPIC-2 (201) Exam

Last exam update: Nov 16 ,2024
Page 1 out of 11. Viewing questions 1-15 out of 161

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

User Votes:
A
50%
B 1 votes
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000
4 months, 1 week 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

User Votes:
A 1 votes
50%
B 1 votes
50%
C 1 votes
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

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

User Votes:
A
50%
B
50%
C 1 votes
50%
D 1 votes
50%
E 1 votes
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

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

User Votes:
A
50%
B
50%
C 1 votes
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

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

User Votes:
A
50%
B
50%
C
50%
D 1 votes
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

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

User Votes:
A 1 votes
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

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

User Votes:
Discussions
vote your answer:
0 / 1000
4 months, 1 week 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

User Votes:
A
50%
B 1 votes
50%
C
50%
D
50%
E 1 votes
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000
4 months, 1 week 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

Discussions
0 / 1000

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

User Votes:
A 1 votes
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

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

User Votes:
A
50%
B
50%
C
50%
D 1 votes
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

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

User Votes:
A 1 votes
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

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

User Votes:
A 1 votes
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

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

User Votes:
Discussions
vote your answer:
0 / 1000

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

User Votes:
A 1 votes
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000
To page 2