101-500 Exam Question 21
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Correct Answer:
cmdline
Explanation:
The file in the /proc filesystem that lists the parameters passed from the bootloader to the kernel is /proc
/cmdline. This file contains a single line of text that shows the command line arguments that were used to boot the kernel. These arguments can include various options, such as the root device, the init process, the console device, and more. The /proc/cmdline file is read-only and cannot be modified at runtime. The parameters in this file are determined by the bootloader configuration, such as GRUB or LILO, and can be changed by editing the corresponding files12.
:1: The /proc Filesystem - The Linux Kernel documentation 2: passing bootloader arguments to the kernel - Unix & Linux Stack Exchange
Explanation:
The file in the /proc filesystem that lists the parameters passed from the bootloader to the kernel is /proc
/cmdline. This file contains a single line of text that shows the command line arguments that were used to boot the kernel. These arguments can include various options, such as the root device, the init process, the console device, and more. The /proc/cmdline file is read-only and cannot be modified at runtime. The parameters in this file are determined by the bootloader configuration, such as GRUB or LILO, and can be changed by editing the corresponding files12.
:1: The /proc Filesystem - The Linux Kernel documentation 2: passing bootloader arguments to the kernel - Unix & Linux Stack Exchange
101-500 Exam Question 22
What does the command mount --bind do?
Correct Answer: A
The mount --bind command is used to create a bind mount, which is an alternate view of a directory tree. A bind mount takes an existing directory tree and replicates it under a different point. The directories and files in the bind mount are the same as the original. Any modification on one side is immediately reflected on the other side, since the two views show the same data. For example, after issuing the command:
mount --bind /some/where /else/where
the directories /some/where and /else/where have the same content, which is the content of /some/where. A bind mount can be useful for accessing hidden files, creating chroot environments, or changing the permissions or ownership of files.
The other options are not correct because:
* B. It mounts all available filesystems to the current directory: This is not what the mount --bind command does. The mount --bind command only creates a bind mount for a single directory tree. To mount all available filesystems to the current directory, one would need to use the mount -a command with the -t option and specify the current directory as the target.
* C. It mounts all user mountable filesystems to the user's home directory: This is not what the mount -- bind command does. The mount --bind command only creates a bind mount for a single directory tree.
To mount all user mountable filesystems to the user's home directory, one would need to use the mount
-a command with the -t option and specify the user's home directory as the target. However, this is not a common or recommended practice, as it may cause conflicts or errors with the existing files and directories in the user's home directory.
* D. It mounts all file systems listed in /etc/fstab which have the option userbind set: This is not what the mount --bind command does. The mount --bind command only creates a bind mount for a single directory tree. To mount all file systems listed in /etc/fstab which have the option userbind set, one would need to use the mount -a command with the -O option and specify userbind as the option.
However, this is not a standard or supported option for the mount command or the /etc/fstab file, and it may not work as expected.
* E. It permanently mounts a regular file to a directory: This is not what the mount --bind command does.
The mount --bind command only creates a bind mount for a directory tree, not a regular file. To mount a regular file to a directory, one would need to use the mount command with the -o loop option and specify the file and the directory as the source and the target. However, this is only possible for files that contain a valid filesystem image, such as an ISO file or a disk image. A bind mount is not permanent, and it can be unmounted with the umount command.
References:
Understanding Bind Mounts | Baeldung on Linux
What is a bind mount? - Unix & Linux Stack Exchange
mount(8) - Linux manual page
mount --bind /some/where /else/where
the directories /some/where and /else/where have the same content, which is the content of /some/where. A bind mount can be useful for accessing hidden files, creating chroot environments, or changing the permissions or ownership of files.
The other options are not correct because:
* B. It mounts all available filesystems to the current directory: This is not what the mount --bind command does. The mount --bind command only creates a bind mount for a single directory tree. To mount all available filesystems to the current directory, one would need to use the mount -a command with the -t option and specify the current directory as the target.
* C. It mounts all user mountable filesystems to the user's home directory: This is not what the mount -- bind command does. The mount --bind command only creates a bind mount for a single directory tree.
To mount all user mountable filesystems to the user's home directory, one would need to use the mount
-a command with the -t option and specify the user's home directory as the target. However, this is not a common or recommended practice, as it may cause conflicts or errors with the existing files and directories in the user's home directory.
* D. It mounts all file systems listed in /etc/fstab which have the option userbind set: This is not what the mount --bind command does. The mount --bind command only creates a bind mount for a single directory tree. To mount all file systems listed in /etc/fstab which have the option userbind set, one would need to use the mount -a command with the -O option and specify userbind as the option.
However, this is not a standard or supported option for the mount command or the /etc/fstab file, and it may not work as expected.
* E. It permanently mounts a regular file to a directory: This is not what the mount --bind command does.
The mount --bind command only creates a bind mount for a directory tree, not a regular file. To mount a regular file to a directory, one would need to use the mount command with the -o loop option and specify the file and the directory as the source and the target. However, this is only possible for files that contain a valid filesystem image, such as an ISO file or a disk image. A bind mount is not permanent, and it can be unmounted with the umount command.
References:
Understanding Bind Mounts | Baeldung on Linux
What is a bind mount? - Unix & Linux Stack Exchange
mount(8) - Linux manual page
101-500 Exam Question 23
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
Correct Answer: D
The command kill -TERM 123 kills the process with the PID 123 but allows the process to "clean up" before exiting. The option -TERM specifies the signal to be sent to the process, which is the termination signal (SIGTERM). This signal requests the process to terminate gracefully, which means that the process can perform any necessary actions before exiting, such as closing files, releasing resources, or saving data. The process can also catch the signal and ignore it or handle it in a different way, if it is programmed to do so. The syntax is: kill -TERM pid. For example, kill -TERM 123 will send the SIGTERM signal to the process with the PID 123, asking it to terminate nicely. The other options are not correct because:
* A. kill -PIPE 123: This command sends the broken pipe signal (SIGPIPE) to the process, which is not used to kill the process, but to notify it that the other end of a pipe has been closed. This signal is usually ignored by the process, unless it is writing to the pipe, in which case it will cause the process to terminate1.
* B. kill -KILL 123: This command sends the kill signal (SIGKILL) to the process, which is the most powerful way to kill the process, but it does not allow the process to "clean up" before exiting. The SIGKILL signal cannot be caught, blocked, or ignored by the process, and it forces the process to terminate immediately, without performing any actions. This command should be used as a last resort, when the process is unresponsive or causing harm to the system2.
* C. kill -STOP 123: This command sends the stop signal (SIGSTOP) to the process, which is not used to kill the process, but to pause it. The SIGSTOP signal cannot be caught, blocked, or ignored by the process, and it suspends the execution of the process until it receives a continue signal (SIGCONT). This command can be used to temporarily stop a process from running, without terminating it3. References:
* What is the purpose of the SIGPIPE signal? - Stack Overflow
* How to kill a process in Linux - LinuxConfig.org
* Linux Signals - GeeksforGeeks
* A. kill -PIPE 123: This command sends the broken pipe signal (SIGPIPE) to the process, which is not used to kill the process, but to notify it that the other end of a pipe has been closed. This signal is usually ignored by the process, unless it is writing to the pipe, in which case it will cause the process to terminate1.
* B. kill -KILL 123: This command sends the kill signal (SIGKILL) to the process, which is the most powerful way to kill the process, but it does not allow the process to "clean up" before exiting. The SIGKILL signal cannot be caught, blocked, or ignored by the process, and it forces the process to terminate immediately, without performing any actions. This command should be used as a last resort, when the process is unresponsive or causing harm to the system2.
* C. kill -STOP 123: This command sends the stop signal (SIGSTOP) to the process, which is not used to kill the process, but to pause it. The SIGSTOP signal cannot be caught, blocked, or ignored by the process, and it suspends the execution of the process until it receives a continue signal (SIGCONT). This command can be used to temporarily stop a process from running, without terminating it3. References:
* What is the purpose of the SIGPIPE signal? - Stack Overflow
* How to kill a process in Linux - LinuxConfig.org
* Linux Signals - GeeksforGeeks
101-500 Exam Question 24
What is the output of the following command?
echo "Hello World" | tr -d aieou
echo "Hello World" | tr -d aieou
Correct Answer: C
The tr command is used to translate or delete characters from a given input. The -d option specifies that the characters in the second argument should be deleted from the input. In this case, the second argument is aieou, which are the vowels in the English alphabet. Therefore, the tr command will delete any vowel from the input, which is Hello World. The output will be the input without any vowels, which is Hll Wrld.
References:
* [LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.7: Perform basic file management, Weight: 4, Key Knowledge Areas: Use of tr to perform basic text transformations.
* [LPI Linux Essentials Certification All-in-One Exam Guide], Chapter 5: Working with Files, Page 165, Using the tr Command.
References:
* [LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.7: Perform basic file management, Weight: 4, Key Knowledge Areas: Use of tr to perform basic text transformations.
* [LPI Linux Essentials Certification All-in-One Exam Guide], Chapter 5: Working with Files, Page 165, Using the tr Command.
101-500 Exam Question 25
The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh.
What is the usual way to pass this change to the kernel from your boot loader?
What is the usual way to pass this change to the kernel from your boot loader?
Correct Answer: B
The usual way to pass this change to the kernel from the boot loader is to pass init=/bin/sh on the kernel parameter line12. The init kernel parameter is used to specify the program that is run as the first process after the kernel is loaded3. By default, this program is /sbin/init, which is responsible for starting and managing other processes and services4. However, by passing init=/bin/sh, the kernel will run /bin/sh instead, which is a shell program that allows the user to execute commands interactively or from a script5. This way, the user can bypass the usual initialization process and run /bin/sh as the root user, which can be useful for troubleshooting or recovery purposes12.
The other options in the question are not correct because:
* A. Start in runlevel 1: This option would not bypass the /sbin/init program, but rather instruct it to start the system in single-user mode, which is a mode that allows only the root user to log in, and disables all network services and graphical interfaces. To start in runlevel 1, the user would need to pass single or 1 on the kernel parameter line, not init=/bin/sh.
* C. Pass /bin/sh on the kernel parameter line: This option would not work, because the kernel would not recognize /bin/sh as a valid parameter and would ignore it. The kernel only accepts parameters that have a specific format, such as name=value or name.flag3. To specify the init program, the user would need to use the init= prefix, as in init=/bin/sh3.
* D. Pass start=/bin/sh on the kernel parameter line: This option would also not work, because the kernel does not have a start parameter. The user would need to use the init parameter, as in init=/bin/sh3.
:
1: How to pass arguments to a Linux kernel init= bootparam? - Unix & Linux Stack Exchange 2: kernel parameter init=/bin/bash not working? (RHEL7, RHCSA test) - Unix & Linux Stack Exchange 3: The kernel' s command-line parameters - The Linux Kernel documentation 4: [init - Wikipedia] 5: [sh - Wikipedia] :
[Single-user mode - Wikipedia] : How to Change Runlevels (targets) in SystemD - Tecmint
The other options in the question are not correct because:
* A. Start in runlevel 1: This option would not bypass the /sbin/init program, but rather instruct it to start the system in single-user mode, which is a mode that allows only the root user to log in, and disables all network services and graphical interfaces. To start in runlevel 1, the user would need to pass single or 1 on the kernel parameter line, not init=/bin/sh.
* C. Pass /bin/sh on the kernel parameter line: This option would not work, because the kernel would not recognize /bin/sh as a valid parameter and would ignore it. The kernel only accepts parameters that have a specific format, such as name=value or name.flag3. To specify the init program, the user would need to use the init= prefix, as in init=/bin/sh3.
* D. Pass start=/bin/sh on the kernel parameter line: This option would also not work, because the kernel does not have a start parameter. The user would need to use the init parameter, as in init=/bin/sh3.
:
1: How to pass arguments to a Linux kernel init= bootparam? - Unix & Linux Stack Exchange 2: kernel parameter init=/bin/bash not working? (RHEL7, RHCSA test) - Unix & Linux Stack Exchange 3: The kernel' s command-line parameters - The Linux Kernel documentation 4: [init - Wikipedia] 5: [sh - Wikipedia] :
[Single-user mode - Wikipedia] : How to Change Runlevels (targets) in SystemD - Tecmint
- Other Version
- 4107Lpi.101-500.v2022-11-30.q106
- 103Lpi.Prep4king.101-500.v2022-04-27.by.morton.131q.pdf
- 6162Lpi.101-500.v2022-02-03.q131
- 4860Lpi.101-500.v2021-10-31.q110
- 62Lpi.Prepawaytest.101-500.v2021-08-15.by.una.105q.pdf
- Latest Upload
- 112SAP.C_THR84_2505.v2026-01-12.q37
- 103Salesforce.CRT-261.v2026-01-12.q83
- 147Microsoft.SC-400.v2026-01-11.q164
- 132SAP.C_THR88_2505.v2026-01-11.q67
- 136CIPS.L4M6.v2026-01-11.q106
- 115SAP.C_S4CS_2502.v2026-01-11.q35
- 144Lpi.101-500.v2026-01-11.q128
- 110Salesforce.Health-Cloud-Accredited-Professional.v2026-01-10.q45
- 162Microsoft.AZ-900.v2026-01-10.q234
- 140VMware.3V0-32.23.v2026-01-10.q133
[×]
Download PDF File
Enter your email address to download Lpi.101-500.v2026-01-11.q128 Practice Test
