Exam Information
Free practice questions with explanations
LPI 101-500 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 14
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice System Architecture
A administrator is troubleshooting a field-deployed Linux server that no longer recognises a USB serial adapter after a kernel upgrade. The adapter's driver is built as a loadable module. The administrator needs to confirm whether the required module is currently loaded and, if it is not, load it without rebooting and make the change persist across reboots. Which sequence of actions best meets these requirements?
Correct Answer: AExplanationlsmod lists loaded modules, and modprobe loads a module together with its dependencies, which is the correct way to bring it in without a reboot. Persistence across reboots is handled by listing the module name in a file in /etc/modules-load.d/, which systemd-modules-load reads at boot. Using lspci is wrong because it lists PCI devices, not loaded modules, and a USB adapter is not a PCI device. Running depmod only rebuilds the module dependency database; it does not load anything. Copying files into /sys/module/ is not how drivers are installed, since that directory reflects loaded module state and is not a module store.
-
2 Question 2 Single choice Linux Installation and Package Management
A company is provisioning a new UEFI-only server with a 2 TB disk. The application team requires that /var can grow independently of the root filesystem, that a 16 GB swap space is available, and that the layout can be extended later without repartitioning the disk. The administrator must not use legacy BIOS boot assumptions. Which design best satisfies these requirements?
Correct Answer: BExplanationOn a UEFI system the disk should use GPT with an EFI System Partition, which firmware needs to locate the boot loader, and LVM lets /var, root and swap be grown later inside the volume group. A BIOS boot partition is only used for GRUB on BIOS-booted GPT disks, so option D misreads the firmware requirement. MBR partitioning with GRUB in the MBR is a legacy BIOS arrangement and conflicts with the UEFI constraint. Putting /var and swap as subdirectories and swap files on one filesystem does not give /var independent sizing and misplaces swap, which should be its own swap space.
-
3 Question 3 Single choice GNU and Unix Commands
A support engineer is working in a Bash session on a shared build server. A deployment script expects the variable DEPLOY_ENV to be visible to child processes it launches, but the engineer set it earlier in the session with DEPLOY_ENV=staging. Later, the engineer needs to verify which 'deploy' executable will actually run, since several copies exist in different PATH directories. Which pair of commands accomplishes both tasks correctly?
Correct Answer: AExplanationA shell variable only reaches child processes once it is exported, so export DEPLOY_ENV is required before the script starts. which reports the first executable found in PATH for a command name, which is the information the engineer needs. The set builtin lists shell state and does not export variables, so option B is wrong. env with an assignment runs a single command in a modified environment rather than changing the current shell, and uname prints system information, not command locations. Unsetting the variable removes it, and man shows manual pages rather than file locations.
-
4 Question 4 Single choice Devices, Linux Filesystems, Filesystem Hierarchy Standard
A storage administrator must prepare a 4 TB data disk for a database that will eventually exceed 2.5 TB. Because the disk will be used by a 64-bit Linux system and must support partitions larger than 2 TB, the administrator plans to use GPT. The disk also needs an XFS filesystem for the database. Which approach is correct, and which common shortcut must be avoided?
Correct Answer: AExplanationMBR cannot address partitions beyond 2 TB, so a GPT label is required, and parted can create it while also making the single spanning partition. mkfs.xfs then formats that partition, and formatting the raw disk without a partition table would leave the layout undefined for later tools. Option B uses MBR, which fails the 2.5 TB requirement. Option C misuses mkswap, which creates swap space rather than a label or XFS. Option D picks VFAT, which is not suitable for a database workload and is not the filesystem specified.
-
5 Question 5 Single choice System Architecture
A Linux workstation shows intermittent failures with a USB storage enclosure. The administrator wants to see which kernel device nodes the enclosure creates, the bus and device numbers used by the kernel, and what udev rules apply, without physically removing the device. The administrator also wants to avoid changing the system configuration during investigation. Which action is the best FIRST step?
Correct Answer: AExplanationlsusb reports the bus and device numbers the kernel assigned to the enclosure, and udevadm info can then display the properties and attributes udev uses for that node, all as read-only inspection. This satisfies the requirement to avoid changing configuration. lspci lists PCI devices, and a USB enclosure is not on the PCI bus, so option B is wrong and also changes configuration. Unloading usb-storage disrupts other devices and is a change, which violates the constraint. Querying dbus and editing fstab changes or depends on state without first identifying the device, so it does not diagnose the enclosure.
-
6 Question 6 Single choice Linux Installation and Package Management
A team is preparing a bootable Linux system that must boot from either of two disks, so that failure of the primary disk does not stop the server. The system uses GRUB 2 on a BIOS-based GPT disk. The administrator wants the second disk to be bootable with the same boot loader and a working kernel without copying the root filesystem. Which step is required on the second disk?
Correct Answer: AExplanationOn a BIOS system with a GPT label, GRUB 2 needs a BIOS boot partition to hold its core image, and grub-install must be run against the second disk so that its MBR/boot code chain-loads that core image. Copying the EFI directory is meaningless on a BIOS-booted system, so option B is wrong. mkswap writes swap metadata and does not make a partition bootable. Setting the LVM partition type and running lsblk only reports the layout and does not install a boot loader, and GRUB does not require the kernel to live in a logical volume.
-
7 Question 7 Multiple choice GNU and Unix Commands
A developer is editing a shell script that must build a log file name containing the current date and host name, and must pass an argument containing spaces and a dollar sign to a command without the shell expanding it. Which TWO statements about these tasks are correct? (Choose two.)
Correct Answer: A, CExplanationSingle quotes disable all shell expansion, so a dollar sign inside them stays literal, and $(...) command substitution runs the enclosed command and inserts its output, which builds a dated file name. Double quotes still allow $ parameter expansion, so option B is wrong. The .bash_history file is written when the session ends or history is saved, not immediately, so option D is wrong. export only marks a variable for child processes and does not change when expansion happens, so option E is incorrect.
-
8 Question 8 Single choice Devices, Linux Filesystems, Filesystem Hierarchy Standard
A company runs an ext4 root filesystem on a server with a monitoring agent that alerts when filesystem usage exceeds 90 percent. Users report that new files cannot be created even though df shows 40 percent free space. The administrator suspects the inode table is exhausted by a process creating many tiny temporary files. Which command should be run FIRST to confirm the diagnosis, and why is it the right first step?
Correct Answer: AExplanationdf -i reports inode totals and usage for each mounted filesystem, which directly tests the hypothesis that inodes are exhausted while block space remains free. du measures disk space consumed, not inode count, so option C does not answer the question. Running fsck on a mounted root filesystem is unsafe and is not a read-only inode report, so option B is wrong. mkfs.ext4 -n only prints what a new filesystem would look like and does not inspect the existing one, so option D is incorrect and dangerous.
-
9 Question 9 Single choice System Architecture
A data-centre operator is replacing a failed network card in a rack server. Before ordering a like-for-like replacement, the operator must identify the card's PCI vendor and device identifiers and its currently assigned interrupt and I/O resources, from the running system and without installing extra software. Which command set provides this information with the least disruption?
Correct Answer: AExplanationlspci -nn prints the numeric vendor and device IDs in brackets, and lspci -v adds details such as the IRQ and I/O memory regions assigned to the device, all read-only. Because this server's network card is a PCI device, lsusb would not list it, so option B is wrong. lsmod lists loaded modules and does not report hardware resources. modprobe -c prints module configuration directives, not the card's resource assignments.
-
10 Question 10 Single choice Linux Installation and Package Management
An administrator is designing the disk layout for an application server where /var holds rapidly growing log data and must not fill the root filesystem. The server will run for several years, and the business wants to add more storage capacity over time without taking the service offline. The design should keep the layout flexible for growth. Which choice best meets these requirements, and what must be avoided?
Correct Answer: AExplanationPutting /var on an LVM logical volume allows the volume and its ext4 or XFS filesystem to be grown online with lvextend and the appropriate resize tool, which fits the no-outage growth requirement, and the root filesystem stays separate and protected. Fixed-size partitions cannot be grown without repartitioning and downtime, so option B fails the stated constraint. Bind-mounting /var into /home mixes system and user data, and it does not fix the sizing problem, so option C is wrong. VFAT is unsuitable for a Linux system partition and does not solve growth, so option D is incorrect.
-
11 Question 11 Single choice GNU and Unix Commands
A systems engineer working on a Bash-based automation host needs to run a tool installed in a non-standard directory, /opt/tools/bin, which is not included in PATH. The engineer also needs to check whether an older copy of the same tool shadows it in /usr/local/bin, and to avoid permanently changing the environment for other users. Which approach is correct and sufficient?
Correct Answer: AExplanationInvoking a command by its full path bypasses PATH lookup entirely, and type -a lists every match the shell would find, which exposes any shadowing copy in /usr/local/bin. This leaves the system-wide environment untouched, satisfying the constraint. Editing /etc/profile changes the environment for all users and violates the requirement not to make a permanent change. uname reports system information, not command locations, and changing HISTFILE has nothing to do with locating binaries, so options C and D are wrong.
-
12 Question 12 Single choice Devices, Linux Filesystems, Filesystem Hierarchy Standard
A Linux administrator must prepare a removable drive for use on both Linux servers and Windows laptops. The drive must hold files larger than 4 GB, must not require journaling features that Windows cannot read, and needs a partition table that works with common removable-media tools. The administrator wants to create the filesystem with the appropriate mkfs command. Which choice meets these requirements?
Correct Answer: AExplanationexFAT supports files larger than 4 GB and is readable by Windows and modern Linux, and an MBR label on a removable drive of modest size is widely compatible, so mkfs.exfat on an MBR partition meets the constraints. Btrfs is not readable by Windows without third-party drivers, so option B fails the compatibility requirement. ext4 is not natively readable on Windows, so option C fails. mkswap creates swap signatures and does not produce a filesystem for file storage, so option D is wrong.
-
13 Question 13 Single choice System Architecture
A Linux server boots, but a device driver for a built-in peripheral has been disabled in the BIOS by a previous administrator. The company's policy requires that the peripheral be re-enabled without reinstalling the operating system, and the administrator must determine the current hardware settings before changing anything. Which step should the administrator take FIRST?
Correct Answer: AExplanationBecause the device is disabled in firmware, the sensible first step is a read-only inspection of its current state and resource assignments through lspci and sysfs under /sys/bus/pci/devices/, which documents what the kernel sees before any change. Unloading the driver makes no sense for a device that is disabled in firmware and is a change made before diagnosis, so option B is wrong. Editing udev rules and removing device nodes do not re-enable firmware-disabled hardware, so options C and D are incorrect. Diagnosing first satisfies the stated requirement.
-
14 Question 14 Multiple choice Linux Installation and Package Management
A company is planning the disk layout for a new Linux file server that must keep the root filesystem safe from user-generated growth, provide swap, and allow future expansion. Which TWO design decisions are appropriate? (Choose two.)
Correct Answer: A, BExplanationSeparating /home onto its own partition or volume isolates user data growth from the root filesystem, and giving swap its own partition or volume keeps it independent of log growth in /var and makes its size predictable. Placing /boot on an LVM volume that the boot loader must read is a poor choice because early boot loaders often cannot read LVM, so option C is wrong. Removing swap and sharing / with /var ignores both the safety and swap requirements, so option D is incorrect. Formatting the ESP as ext4 is wrong because firmware requires FAT for the EFI System Partition, so option E is incorrect.
These are 14 of the 296 questions in the full 101-500 pack.
Get All 296 QuestionsGet all 296 questions & answers
Full access options for LPI 101-500
Self-study
PDF Version
- 296 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 296 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 296 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the 101-500 Exam (LPIC-1 Exam 101, Part 1 of 2) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.