www.cert4prep.com/ LPI 101-500 LPIC-1 Exam 101, Part 1 of 2, version 5.0 Version: 9.2 Questions & Answers DEMO PDF (Preview content before you buy) Check the full version using the link below www.cert4prep.com/exam/101-500 Unlock Full Features Stay Updated: 90 days of free exam updates Zero Risk: 30-day money-back policy Instant Access: Download right after purchase Always Here: 24/7 customer support team Page 1 of 6 www.cert4prep.com/exam/101-500 www.cert4prep.com/ Question 1. (Single Select) Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination? A: /etc/keys B: /proc/keys C: /etc/inittab D: /proc/inittab E: /etc/reboot Answer: C Explanation: The /etc/inittab file is used by the SysV init system to configure the behavior of different runlevels and the actions to be taken when certain events occur. One of the events that can be configured is the ctrl-alt-delete key combination, which by default triggers a system reboot. To disable this feature, the /etc/inittab file should be modified to comment out or remove the line that starts with ca::ctrlaltdel:. LPI Linux Essentials - 1.101.2, LPI Linux Administrator - 101.1 Question 2. (Multi Select) Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.) A: 0 B: 1 C: 3 D: 5 E: 6 Answer: A, E Explanation: Page 2 of 6 www.cert4prep.com/exam/101-500 Run levels are predefined modes of operation in the SysV init system that determine which processes and services are started or stopped. The default run level is the one that the system enters after booting. It is usually specified in the /etc/inittab file with a line like id:5:initdefault:. The run levels 0 and 6 should never be declared as the default run level because they are used to halt and reboot the system, respectively. If they are set as the default, the system will enter an endless loop of shutting down and restarting. The other run levels (1-5) have different meanings depending on the distribution, but they usually correspond to single-user mode, multi-user mode, network mode, graphical mode, etc. LPI Linux Essentials - 1.101.2, LPI Linux Administrator - 101.3 Question 3. (Multi Select) Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.) A: shutdown -r now B: shutdown -r "rebooting" C: telinit 6 D: telinit 0 E: shutdown -k now "rebooting" Answer: A, C Explanation: The shutdown command is used to bring the system down in a safe and controlled way. It can take various options and arguments, such as the time of shutdown, the message to broadcast to users, the halt or reboot mode, etc. The option -r instructs the shutdown command to reboot the system after shutting down. The argument now means to shut down immediately. Therefore, shutdown -r now will reboot the system without delay. The telinit command is used to change the run level of the system. It takes a single argument that specifies the new run level. The run level 6 is reserved for rebooting the system. Therefore, telinit 6 will also reboot the system. The other options are either incorrect or irrelevant. shutdown -r “rebooting” will also reboot the system, but with a delay of one minute and a message to the users. telinit 0 will halt the system, not reboot it. shutdown -k now “rebooting” will only send a warning message to the users, but not actually shut down or reboot the system. LPI Linux Essentials - 1.101.2, LPI Linux Administrator - 101.3 Page 3 of 6 www.cert4prep.com/exam/101-500 Question 4. (Multi Select) Which of the following are init systems used within Linux systems? (Choose THREE correct answers.) A: startd B: systemd C: Upstart D: SysInit E: SysV init Answer: B, C, E Explanation: systemd, Upstart, and SysV init are all init systems used within Linux systems. An init system is the first process executed by the kernel at boot time, which has a process ID (PID) of 1, and is responsible for starting and managing all other processes on the system. Different init systems have different features, advantages, and disadvantages. Some of the most common init systems are: systemd: A relatively new and modern init system that aims to provide a unified and efficient way of managing system and service states. It is compatible with SysV and LSB init scripts, and supports features such as parallel processing, socket activation, logging, job scheduling, and more. It is the default init system for many popular Linux distributions, such as Fedora, Debian, Ubuntu, Arch Linux, and others12. Upstart: An event-based init system developed by Ubuntu as a replacement for SysV init. It starts and stops system tasks and processes based on events, such as hardware changes, network availability, filesystem mounting, etc. It is a hybrid init system that uses both SysV and systemd scripts, and supports features such as parallel processing, dependency tracking, logging, and more. It is the default init system for some older versions of Ubuntu, and some other Linux distributions, such as Linux Mint and Chrome OS12. SysV init: A mature and traditional init system that follows the System V (SysV) design of Unix operating systems. It uses a series of runlevels to define the state of the system, and executes scripts in the /etc/rc.d or /etc/init.d directories according to the current runlevel. It is simple and stable, but lacks some features of modern init systems, such as parallel processing, event handling, dependency tracking, etc. It is still used by some Linux distributions, such as Slackware, Gentoo, and others12. Question 5. (Single Select) Page 4 of 6 www.cert4prep.com/exam/101-500 Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.) A: cmdline Answer: A 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. Page 5 of 6 www.cert4prep.com/exam/101-500 www.cert4prep.com/ Need more info? Check the link below: www.cert4prep.com/exam/101-500 Thanks for Being a Valued Cert4Prep User! Guaranteed Success Pass Every Exam with Cert4Prep. Save $15 instantly with promo code LEARN15 Sales: sales@cert4prep.com Support: support@cert4prep.com Page 6 of 6 www.cert4prep.com/exam/101-500