201-450 MCQs and Practice Test


201-450 MCQs

201-450 TestPrep

201-450 Study Guide

201-450 Practice Test

201-450 Exam Questions


killexams.com


LPI


201-450

LPIC-2 Exam 201, Part 1 of 2, version 4.5


https://killexams.com/pass4sure/exam-detail/201-450

Download PDF for 201-450




Question: 842


Which command displays the dependencies of a kernel module named xfs before attempting to load it?


  1. /bin/dmesg | grep xfs

  2. /sbin/lspci -k xfs

  3. /sbin/lsmod | grep xfs

  4. /sbin/modinfo xfs

  5. /sbin/modinfo -r xfs

    Answer: D

Explanation: The /sbin/modinfo xfs command displays the dependencies of the xfs module, listed under

the “depends” field. /bin/dmesg | grep xfs shows kernel logs, not dependencies. /sbin/lspci -k xfs is invalid, as lspci does not accept module names. /sbin/lsmod | grep xfs shows loaded modules, not dependencies of unloaded modules. /sbin/modinfo -r xfs is invalid, as modinfo does not support -r.




Question: 843


To list all kernel modules not used in the past hour, which method is reliable?


  1. lsmod | grep unused

  2. dmesg --unused-modules

  3. Combine lsmod with process monitoring (no direct command)

  4. grep "not used" /proc/modules

  5. modprobe --show-unused

    Answer: C

Explanation: No direct command exists; combine lsmod with lsof or ps to track module usage over time.




Question: 844


When installing a newly compiled kernel on a Red Hat-based system, which command ensures that the initramfs image is generated and the GRUB bootloader is updated to include the new kernel?


  1. dracut -f /boot/initramfs-5.15.img 5.15; update-grub

  2. mkinitramfs -o /boot/initrd.img-5.15 5.15; grub2-mkconfig -o /boot/grub2/grub.cfg

  3. mkinitrd /boot/initrd.img-5.15 5.15; update-grub2

  4. dracut /boot/initramfs-5.15.img 5.15; grub2-mkconfig -o /boot/grub2/grub.cfg

  5. mkinitrd -f /boot/initramfs-5.15.img 5.15; grub-mkconfig

    Answer: D

Explanation: On Red Hat-based systems, dracut is the standard tool for generating initramfs images, and dracut /boot/initramfs-5.15.img 5.15 creates an initramfs for kernel version 5.15. The grub2-mkconfig -o

/boot/grub2/grub.cfg command updates the GRUB configuration to include the new kernel. The -f option in dracut is optional for overwriting, but not strictly necessary here. The other options are incorrect because mkinitramfs is typically used on Debian-based systems, update-grub is a Debian-specific script, and grub-mkconfig alone is not the correct command on Red Hat systems.




Question: 845


Which pstree option shows PIDs and states?


  1. -p

  2. -s

  3. -c

  4. -g

  5. -u




Answer: A


Explanation: pstree -p displays PIDs. States aren't shown by default; combine with ps for state data.




Question: 846


While troubleshooting a USB device that intermittently disconnects, you need to identify the specific device’s details by its vendor and product ID (e.g., 1234:5678). Which command achieves this?


  1. lsusb -v

  2. lsusb -d 1234:5678

  3. lsusb -t

  4. lsusb --device 1234:5678

  5. lsusb --vendor 1234



Answer: B


Explanation: The lsusb -d 1234:5678 command filters the USB device list to show only the device with the specified vendor and product ID, making it ideal for pinpointing specific device details. The lsusb -v command is too verbose, lsusb -t shows the hierarchy, and lsusb --device and lsusb --vendor are not valid options.




Question: 847


You need to check if ext4 module supports fsync(). Which command reveals module parameters?


  1. lspci -k | grep ext4

  2. lsmod -p ext4

  3. dmesg | grep ext4

  4. modinfo -F parm ext4

  5. insmod --show-params ext4.ko

    Answer: D

Explanation: modinfo -F parm lists parameters a module accepts, indicating supported features.




Question: 848


What is the effect of running make oldconfig with a .config file from an older kernel version?


  1. Builds the kernel with the old configuration

  2. Installs modules using the old configuration

  3. Discards the old .config and creates a new one

  4. Prompts for new options and updates .config

  5. Generates a graphical configuration interface

    Answer: D

Explanation: The make oldconfig command reads the existing .config file and prompts for new options introduced in the current kernel version, updating .config accordingly. It does not build the kernel, discard the .config, install modules, or launch a graphical interface.



Question: 849


Which command and options allow you to measure disk I/O throughput in megabytes per second for a specific device (e.g., /dev/sdb)?


  1. dstat -cd --disk /dev/sdb

  2. iotop -o -d /dev/sdb

  3. iostat -m /dev/sdb 2

  4. sar -d -p /dev/sdb 2

  5. vmstat -p /dev/sdb

    Answer: C

Explanation: iostat -m /dev/sdb 2 displays disk I/O throughput in megabytes per second for /dev/sdb, updated every 2 seconds. dstat -cd --disk /dev/sdb is not valid. iotop -o -d /dev/sdb focuses on processes, not device throughput. sar -d -p /dev/sdb 2 provides disk stats but not in MB/s by default. vmstat -p

/dev/sdb shows partition stats, not throughput.




Question: 850


Which make target builds the kernel and all modules?


  1. all

  2. bzImage

  3. modules

  4. vmlinux

  5. install

    Answer: A

Explanation: make all builds both the kernel image and modules.




Question: 851


A server's disk space usage:

Filesystem Size Used Avail Use%

/dev/sda1 100G 80G 20G 80%

If daily growth is 1.5GB with variance ±0.2GB, what is the earliest day capacity could exceed 95%?

  1. Day 15

  2. Day 13

  3. Day 10

  4. Day 18




Answer: C


Explanation: Free space needed: 100G×0.15=15GB) Max growth/day=1.5+0.2=1.7GB) Days=15/1.7≈8.8

→ 9 days. Earliest: 9 days from now.




Question: 852


You are tasked with increasing the maximum number of open files on a Linux server to 500,000 to support a high-traffic database application. Which command and configuration file should you use to make this change persistent across reboots?


  1. echo 500000 > /proc/sys/fs/file-max; edit /etc/sysctl.conf

  2. sysctl -w fs.file-max=500000; edit /etc/sysctl.d/99-custom.conf

  3. sysctl fs.file-max=500000; edit /proc/sys/fs/file-max

  4. echo fs.file-max=500000 > /etc/sysctl.conf; sysctl -p

  5. sysctl -w fs.file-max=500000; edit /etc/sysctl.conf

    Answer: B, E

Explanation: To set the maximum number of open files, sysctl -w fs.file-max=500000 applies the change immediately. For persistence, you can edit either /etc/sysctl.conf or a custom file in /etc/sysctl.d/ (e.g., 99-custom.conf) with the line fs.file-max=500000. Both approaches are valid, as /etc/sysctl.d/ files are processed alongside /etc/sysctl.conf, with the latter taking precedence if conflicts exist.




Question: 853


Which command displays the description and author of the loop module?


  1. depmod -d loop

  2. rmmod --info loop

  3. modinfo -F description -F author loop

  4. sysctl -a | grep loop

  5. udevadm info loop

    Answer: C

Explanation: The modinfo -F description -F author loop command extracts the description and author fields from the loop module's metadata. The other options are invalid or unrelated to module metadata extraction.




Question: 854


An administrator needs to identify the kernel module parameters for a loaded module named i915. Which command displays this information?


  1. /bin/dmesg | grep i915

  2. /sbin/lspci -k i915

  3. /sbin/lsmod | grep i915

  4. /usr/bin/lsdev i915

  5. /sbin/modinfo i915

    Answer: E

Explanation: The /sbin/modinfo i915 command displays detailed information about the i915 module, including its available parameters and their descriptions. /bin/dmesg | grep i915 shows kernel logs but not parameter details. /sbin/lspci -k i915 is invalid, as lspci does not accept module names. /sbin/lsmod | grep i915 lists loaded modules but not their parameters. /usr/bin/lsdev i915 is invalid, as lsdev does not accept module names.


KILLEXAMS.COM


Killexams.com is a leading online platform specializing in high-quality certification exam preparation. Offering a robust suite of tools, including MCQs, practice tests, and advanced test engines, Killexams.com empowers candidates to excel in their certification exams. Discover the key features that make Killexams.com the go-to choice for exam success.



Exam Questions:

Killexams.com provides exam questions that are experienced in test centers. These questions are updated regularly to ensure they are up-to-date and relevant to the latest exam syllabus. By studying these questions, candidates can familiarize themselves with the content and format of the real exam.


Exam MCQs:

Killexams.com offers exam MCQs in PDF format. These questions contain a comprehensive

collection of questions and answers that cover the exam topics. By using these MCQs, candidate can enhance their knowledge and improve their chances of success in the certification exam.


Practice Test:

Killexams.com provides practice test through their desktop test engine and online test engine. These practice tests simulate the real exam environment and help candidates assess their readiness for the actual exam. The practice test cover a wide range of questions and enable candidates to identify their strengths and weaknesses.


Guaranteed Success:

Killexams.com offers a success guarantee with the exam MCQs. Killexams claim that by using this materials, candidates will pass their exams on the first attempt or they will get refund for the purchase price. This guarantee provides assurance and confidence to individuals preparing for certification exam.


Updated Contents:

Killexams.com regularly updates its question bank of MCQs to ensure that they are current and reflect the latest changes in the exam syllabus. This helps candidates stay up-to-date with the exam content and increases their chances of success.

Back to Home