Free Practice Questions for the LPIC Level 1 101-500 Exam (2026 Updated)
At Marks4sure, we are dedicated to providing IT professionals with the most accurate and reliable preparation materials for the LPI 101-500 exam. To support your certification journey, we have made a selection of our premium 2026 LPIC Level 1 practice questions and answers available completely free. You can take this practice test as many times as you need. Every question includes a detailed, expertly verified explanation to ensure you fully grasp the core security concepts before test day.
An administrator has issued the following command:
grub-install --root-directory=/custom-grub /dev/sda
In which directory will new configuration files be found? (Provide the full directory path only without the filename)
What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
After modifying GNU GRUB ' s configuration file, which command must be run for the changes to take effect?
Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)
mkdir
/usr/bin/mkdir
The message " Hard Disk Error " is displayed on the screen during Stage 1 of the GRUB boot process. What does this indicate?
To prevent users from being able to fill up the / partition, the ____________ directory should be on a separate partition if possible because it is world writeable.
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)
menu.lst
grub.conf
grub.cfg
You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?
What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
Which of the following commands displays the contents of a gzip compressed tar archive?
Which RPM command will output the name of the package which supplied the file /etc/exports?
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
Which of the following apt-get commands will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not already installed?
When given the following command line.
echo " foo bar " | tee bar | cat
Which of the following output is created?
Which of the following are valid stream redirection operators within Bash? (Choose two.)
Which command displays the contents of the Kernel Ring Buffer on the command line? (Provide only the command name without any options or path information)
What output will be displayed when the user fred executes the following command?
echo ‘fred $USER’
Typically, which top level system directory is used for files and data that change regularly while the system is running and are to be kept between reboots? (Specify only the top level directory)
You want to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. What command do you issue?
Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?
Which of the following commands replaces each occurrence of ' bob ' in the file letter with ' Bob ' and writes the result to the file newletter?
While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?
What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)
Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)
Swapoff
/sbin/swapoff
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
Which of the following commands kills the process with the PID 123 but allows the process to " clean up " before exiting?
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
You suspect that a new ethernet card might be conflicting with another device. Which file should you check within the /proc tree to learn which IRQs are being used by which kernel drivers?
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?
What is true about NetworkManager on a Linux system that uses its distnbution ' s mechanisms to configure network interfaces? (Choose TWO correct answers )
Which of the following commands installs all packages with a name ending with the string foo?
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
Which of the following commands will write a message to the terminals of all logged in users?
During a system boot cycle, what program is executed after the BIOS completes its tasks?
Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
Which file should be edited to select the network locations from which Debian installation package files are loaded?
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
Which of the following shell redirections will write standard output and standard error output to a file named filename?
Which of the following commands moves and resumes in the background the last stopped shell job?
Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?
killall -s _______ daemon
HUP
SIGHUP
1
Which of the following commands will delete the default gateway from the system ' s IP routing table? (Choose TWO correct answers)
ifconfig unset default
Which parameter is missing in the command
ip link set _dev eth0
to activate the previously inactive network interface eth0? (Specify the parameter only without any command, path or additional options)
What is the first program the Linux kernel starts at boot time when using System V init?
Which of the following tasks are handled by a display manager like XDM or KDM? (Choose TWO correct answers.)
Which of the following commands finds all files owned by root that have the SetUID bit set?
What is true regarding the statement beginning with #! that is found in the first line of a script? (Choose TWO correct answers.)
Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?
Which of the following statements is correct for a command line ending with a & character?
After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?
Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?
Which command shows all shared libraries required by a binary executable or another shared library? (Specify ONLY the command without any path or parameters.)
Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?
Which command reads and displays the current contents of the Kernel Ring Buffer on the command line? (Specify ONLY the command without any path or parameters.)
Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)
When using regular expressions, which of the following characters match the beginning of a line?
Which of the following kernel parameters instructs the kernel to suppress most boot messages?
Which of the following commands changes all occurrences of the word “bob” in file data to “Bob” and prints the result to standard output?
Which of the following commands prints a list of available package updates when using RPM-based package management?
Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?
Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
Which of the following statements is correct regarding the command foo 1 > bar?
Which of the following commands will mount an already inserted CD-ROM in /dev/sr0 onto an existing directory /mnt/cdrom when issued with root privileges?






