30 free LPI LPIC-1 101-500 practice questions from the CertStash pack of 120, each with the correct answer and a full explanation. The rule is the same for every exam: ten free on the product page, 30 free here, all 120 in the pack, and each step includes the one before it.
Get all 120 questions (US$39) · Download the first 10 as a PDF · Read the study guide
Question 1
Which type of file system is created by mkfs when it is executed with the block device name only and without any additional parameters?
Show answer and explanation
Correct answer: C. ext2
When mkfs is executed with only a block device name and no additional parameters, it defaults to creating an ext2 filesystem. This is the traditional default behavior of the mkfs command without any filesystem type specification.
Why the other options are wrong
- A. XFS requires explicit specification with mkfs.xfs
- B. VFAT requires explicit specification with mkfs.vfat
- D. ext3 requires explicit specification with mkfs.ext3
- E. ext4 requires explicit specification with mkfs.ext4
Question 2
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?
Show answer and explanation
Correct answer: B. 0027
The umask 0027 subtracts from the default directory permissions (0777). Subtracting 0027 yields 0750, which gives rwx to owner, r-x to group, and no permissions to others. This matches the requirement: owner can read/write/list, group can read/list, others have no access.
Why the other options are wrong
- A. 0750 is the resulting permission, not the umask value
- C. umask 0036 would result in 0741 permissions, not the required 0750
- D. 7640 is not a valid umask format
- E. umask 0029 would result in 0748 permissions, not the required 0750
Question 3
Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
Show answer and explanation
Correct answer: B. tune2fs -i 200 /dev/sda1
The tune2fs -i option specifies the maximum interval between filesystem checks in days. The -i flag sets the time-based check interval, while -c sets mount-count based checks. The -d, -n, and --days options are not valid tune2fs parameters for this purpose.
Why the other options are wrong
- A. The -d option is not a valid tune2fs parameter
- C. The -c option sets checks based on mount count, not days
- D. The -n option is not a valid tune2fs parameter for check intervals
- E. The --days option is not a valid tune2fs parameter
Question 4
Which is the default percentage of reserved space for the root user on new ext4 filesystems?
Show answer and explanation
Correct answer: E. 5%
The default reserved space percentage for the root user on ext4 filesystems is 5%. This reserved space prevents the filesystem from becoming completely full and ensures the root user can still perform administrative operations when the disk is nearly full.
Why the other options are wrong
- A. 10% is higher than the default ext4 reserved percentage
- B. 3% is lower than the default ext4 reserved percentage
- C. 15% is significantly higher than the default ext4 reserved percentage
- D. 0% would mean no reserved space, which is not the default
Question 5
Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?
Show answer and explanation
Correct answer: C. systemd automatically generates a mount unit and monitors the mount point without changing it
When a filesystem is mounted manually but not listed in /etc/fstab, systemd automatically generates a transient mount unit for it and monitors the mount point without making changes. This allows systemd to track and manage the mount while preserving the manual mount configuration.
Why the other options are wrong
- A. systemd does track manual mounts even without explicit systemctl mount commands
- B. There is no systemctl mountsync command
- D. systemd does not automatically unmount manually mounted filesystems after a period of time
- E. systemctl unmount is not required; standard umount works fine for manual mounts
Question 6
What does the command mount --bind do?
Show answer and explanation
Correct answer: A. It makes the contents of one directory available in another directory
The mount --bind command creates a bind mount, which makes the contents of one directory available at another location in the filesystem hierarchy. This allows the same directory to be accessible from multiple mount points without duplicating the data.
Why the other options are wrong
- B. mount --bind does not mount all available filesystems
- C. mount --bind does not mount filesystems to the user's home directory
- D. mount --bind does not use an 'userbind' option from /etc/fstab
- E. mount --bind does not require or permanently mount regular files
Question 7
Consider the following directory: drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
Show answer and explanation
Correct answer: A, E. chmod g+s sales; chmod 2775 sales
Both chmod g+s and chmod 2775 set the setgid bit on the directory. When setgid is enabled on a directory, new files created within it automatically inherit the directory's group ownership (sales in this case). Option A uses symbolic notation while option E uses octal notation to set the same permission.
Why the other options are wrong
- B. setpol is not a valid Linux command
- C. chgrp -p is not a valid option; the -p flag is not used with chgrp
- D. chown --persistent is not a valid command; this syntax does not exist
Question 8
In order to display all currently mounted filesystems, which of the following commands could be used? (Choose two.)
Show answer and explanation
Correct answer: A, D. cat /proc/self/mounts; mount
Both cat /proc/self/mounts and mount display currently mounted filesystems. The /proc/self/mounts file contains a list of all mounts for the current process namespace, while the mount command displays all mounted filesystems. Both provide real-time information about active mounts.
Why the other options are wrong
- B. free displays memory usage, not mounted filesystems
- C. lsmounts is not a standard Linux command
- E. cat /proc/filesystems displays supported filesystem types, not currently mounted filesystems
Question 9
Which chown command changes the ownership to dave and the group to staff on a file named data.txt?
Show answer and explanation
Correct answer: E. chown dave:staff data.txt
The chown command uses the syntax chown [owner]:[group] [file] to change both ownership and group. The colon separator is the standard format recognized by chown. Option E correctly demonstrates this with chown dave:staff data.txt, which changes ownership to dave and group to staff.
Why the other options are wrong
- A. Forward slash is not a valid separator in chown syntax.
- B. The -u and -g flags do not exist for chown; chown does not use flag-based user and group specification.
- C. The --user and --group long options do not exist for chown.
- D. The plus symbol is not a valid separator in chown syntax.
Question 10
Which of the following apt-get subcommands installs the newest versions of all currently installed packages?
Show answer and explanation
Correct answer: B. dist-upgrade
The dist-upgrade subcommand upgrades all currently installed packages to their newest available versions, handling dependency changes intelligently. It is the standard command for upgrading the entire system to newer package versions while resolving dependency conflicts appropriately.
Why the other options are wrong
- A. auto-update is not a standard apt-get subcommand.
- C. full-upgrade is not a standard apt-get subcommand (though it exists in newer apt versions).
- D. install only installs or upgrades specific named packages, not all packages.
- E. update only refreshes the package lists from repositories without upgrading packages.
What people say about the full LPIC-1 pack 5.0 from 6
Used this for two days and passed. Go through the dump, understand it, and you will pass the exam.
Big thanks for this dump. I keep coming back to this seller for each new cert.
The questions I bought actually appeared on the real exam so its definitely worth the price and I recommend it.
Question 11
A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?
Show answer and explanation
Correct answer: D. dpkg -S /etc/debian_version
The dpkg -S command searches for which package owns a given file. The -S flag queries the package database to find file ownership. apt-get and apt commands are for package installation/management, not file ownership queries. The find command and apt-file syntax shown are incorrect for this purpose.
Why the other options are wrong
- A. apt-get search does not support file path searching with this syntax.
- B. apt -r is not valid syntax for searching file ownership.
- C. find command with -dpkg flag does not exist and is incorrect syntax.
- E. apt-file requires different syntax and is primarily used to search for files in packages before installation.
Question 12
Which daemon handles power management events on a Linux system?
Show answer and explanation
Correct answer: A. acpid
The acpid daemon (Advanced Configuration and Power Interface daemon) handles power management events on Linux systems. It listens for ACPI events from the kernel and responds appropriately, such as handling lid closes, power button presses, and thermal events.
Why the other options are wrong
- B. batteryd is not a standard Linux power management daemon.
- C. pwrmgntd is not a recognized power management daemon in standard Linux.
- D. psd is not a power management daemon; it is used for profile synchronization.
- E. inetd is the Internet superserver daemon, not related to power management.
Question 13
When considering the use of hard links, what are valid reasons not to use hard links?
Show answer and explanation
Correct answer: C. Hard links are specific to one filesystem and cannot point to files on another filesystem
Hard links cannot span across different filesystems because they are inode-based references that work only within a single filesystem. When attempting to create a hard link to a file on a different filesystem, the operation will fail. This is a fundamental technical limitation of how hard links function at the filesystem level.
Why the other options are wrong
- A. ext4 and most traditional filesystems fully support hard links.
- B. Hard links share the same inode and therefore have identical permissions, ownership, and ACLs, not individual ones.
- D. No special tool like suln is required; any user can create hard links to files they have permission to read and write to (in the target directory).
- E. Hard links do not create copies; they are additional references to the same inode. Changes are reflected across all hard links without consuming additional space.
Question 14
What is the process ID number of the init process on a System V init based system?
Show answer and explanation
Correct answer: C. 1
The init process on a System V init-based system always has a process ID of 1. This is by design, init is the first process started by the kernel during boot and is the parent of all other processes in the system.
Why the other options are wrong
- A. Process ID -1 is not used for init; it is sometimes used as a special value in certain contexts.
- B. Process ID 0 is reserved for the kernel scheduler, not init.
- D. The init process ID is always 1, regardless of reboots.
- E. The process ID is not related to or set by the runlevel.
Question 15
Which of the following files exist in a standard GRUB 2 installation? (Choose two.)
Show answer and explanation
Correct answer: B, D. /boot/grub/i386-pc/lvm.mod; /boot/grub/grub.cfg
GRUB 2 installations contain /boot/grub/grub.cfg (the main configuration file) and /boot/grub/i386-pc/lvm.mod (architecture-specific module files). GRUB 2 does not use stage files like GRUB Legacy did, does not store fstab in the grub directory, and does not store vmlinuz files in a grub/linux subdirectory.
Why the other options are wrong
- A. GRUB 2 does not use stage files; the stages/ directory is from GRUB Legacy, not GRUB 2.
- C. /boot/grub/fstab does not exist; fstab is located in /etc/, not in the grub directory.
- E. /boot/grub/linux/vmlinuz is not a valid GRUB 2 location; kernels are stored separately from grub.
Question 16
Which of the following statements are true about the boot sequence of a PC using a BIOS? (Choose two.)
Show answer and explanation
Correct answer: A, D. Some parts of the boot process can be configured from the BIOS; The BIOS initiates the boot process after turning the computer on
Option A is correct because the BIOS provides a configuration interface (typically accessed by pressing Delete, F2, etc.) where boot device order, boot options, and other settings can be configured. Option D is correct because the BIOS is the first code to execute after power-on; it performs hardware initialization and then initiates the boot process by loading the bootloader from the configured boot device.
Why the other options are wrong
- B. Linux does require BIOS (or UEFI) assistance during the initial boot process to load the bootloader and boot the kernel.
- C. The BIOS boot process starts regardless of storage functionality; if no bootable device is found, it may display an error.
- E. The BIOS is firmware stored on the motherboard ROM, not loaded from secondary storage.
Question 17
Which of the following commands lists the dependencies of the RPM package file foo.rpm?
Show answer and explanation
Correct answer: A. rpm -qpR foo.rpm
The rpm -qpR command queries package dependencies for an RPM file. The flags mean: -q (query), -p (package file), and -R (requires/dependencies). Together, rpm -qpR foo.rpm lists all dependencies required by the foo.rpm package file.
Why the other options are wrong
- B. rpm -dep is not a valid rpm command option.
- C. rpm -ld is not a valid rpm command option for listing dependencies.
- D. rpm -R foo.rpm queries an installed package rather than a package file.
- E. rpm -pD is not a valid combination of rpm flags.
Question 18
Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)
Show answer and explanation
Correct answer: C, E. The D-Bus Machine ID; The SSH host keys
When cloning a virtual machine, the D-Bus Machine ID (which uniquely identifies the machine) and SSH host keys (which should be unique per machine for security) must be regenerated or changed. These are system identifiers that should not be duplicated across systems. Partitioning scheme and filesystem type are typically preserved during cloning, and /root/ permissions usually remain the same as part of the standard system configuration.
Why the other options are wrong
- A. The partitioning scheme typically remains the same when cloning a virtual machine.
- B. The filesystem type is usually preserved during the cloning process.
- D. The permissions of /root/ are standard system permissions that do not need to change during cloning.
Question 19
Which command uninstalls a package but keeps its configuration files in case the package is re-installed?
Show answer and explanation
Correct answer: E. dpkg -r pkgname
The dpkg -r command removes (uninstalls) a package while preserving its configuration files. This allows the package to be reinstalled later without losing custom configuration settings. The -P option purges both the package and its configuration files.
Why the other options are wrong
- A. dpkg -s queries the status of a package.
- B. dpkg -L lists the files contained within an installed package.
- C. dpkg -P purges a package including all configuration files.
- D. dpkg -v is not a standard option; verbose output uses different flags.
Question 20
Which of the following commands redirects the output of ls to standard error?
Show answer and explanation
Correct answer: C. ls >&2
The command ls >&2 redirects standard output (file descriptor 1) to standard error (file descriptor 2). The syntax >&2 is the correct way to redirect stdout to stderr in bash/shell.
Why the other options are wrong
- A. ls >-1 is invalid syntax; there is no file descriptor -1.
- B. ls < is incomplete syntax for input redirection and would attempt to read input rather than redirect output.
- D. ls >>2 attempts to append output to a file named '2' rather than redirecting to file descriptor 2.
- E. ls |error pipes output to a command named 'error' rather than redirecting to standard error.
Question 21
What is true regarding UEFI firmware? (Choose two.)
Show answer and explanation
Correct answer: A, B. It can read and interpret partition tables; It can use and read certain file systems
Option A is correct because UEFI firmware can read and interpret partition tables (GPT tables). Option B is correct because UEFI has the capability to read certain filesystems (like FAT32, ext4) directly, allowing it to load files from the filesystem without relying solely on fixed disk positions.
Why the other options are wrong
- C. UEFI configuration is stored in NVRAM and the ESP (EFI System Partition), not the /boot/ partition alone.
- D. UEFI firmware itself is stored on the motherboard ROM/flash, not within GPT metadata.
- E. UEFI uses filesystem navigation and boot entries rather than loading from a fixed disk position.
Question 22
What is contained on the EFI System Partition?
Show answer and explanation
Correct answer: B. The first stage boot loader
The EFI System Partition (ESP) contains the first stage boot loader and EFI applications necessary to boot the system. It is typically a FAT32 formatted partition that holds boot files like EFI executables. The root filesystem, swap space, shell binaries, and home directories are all located elsewhere on the system, not on the ESP.
Why the other options are wrong
- A. The Linux root filesystem is located on a separate partition, not the ESP.
- C. Swap space is typically on its own dedicated partition or swap file, not the ESP.
- D. Shell binaries are stored in /bin and /usr/bin on the root filesystem, not the ESP.
- E. User home directories are part of the main filesystem hierarchy, not the ESP.
Question 23
Which of the following commands installs all packages with a name ending with the string foo?
Show answer and explanation
Correct answer: D. zypper install '*foo'
The zypper install command with the wildcard pattern '*foo' installs all packages whose names end with 'foo'. The asterisk is a standard glob pattern for prefix matching. The other commands either use incorrect zypper subcommands (get, update, force, add) or incorrect wildcard syntax (?', 'force', '.*foo') that do not function as intended.
Why the other options are wrong
- A. zypper get is not a valid subcommand for package installation.
- B. zypper update is for updating existing packages, not installing by name pattern; '?' is also incorrect wildcard syntax.
- C. zypper force is not a standard subcommand for package operations.
- E. zypper add does not exist as a subcommand, and '.*foo' uses regex syntax which zypper does not support for package names.
Question 24
When is the content of the kernel ring buffer reset? (Choose two.)
Show answer and explanation
Correct answer: A, E. When the ring buffer is explicitly reset using the command dmesg --clear; When the system is shut down or rebooted
The kernel ring buffer is reset in two specific scenarios: when explicitly cleared using the dmesg --clear command, and when the system is shut down or rebooted (which clears all in-memory kernel structures). Reading the buffer with dmesg does not clear it, there is no 15-minute automatic reset timer, and loading kernel modules does not reset the buffer.
Why the other options are wrong
- B. Reading dmesg without parameters displays the buffer but does not clear it.
- C. There is no automatic time-based reset of the kernel ring buffer at any interval.
- D. Loading or unloading kernel modules has no effect on the ring buffer contents.
Question 25
What is true regarding the command ls > files if files does not exist?
Show answer and explanation
Correct answer: B. files is created and contains the output of ls
When using the > redirect operator, if the target file does not exist, the shell creates it. The output of ls is then written to this newly created file called files.
Why the other options are wrong
- A. Output is redirected to a file, not printed to the terminal.
- C. No error occurs; redirection to a non-existent file causes the file to be created.
- D. The word files after > is treated as a filename, not as a command to execute.
- E. The output of ls is written to the file, not discarded.
Question 26
From a Bash shell, which of the following commands directly execute the instructions from the file /usr/local/bin/runme.sh without starting a subshell? (Choose two.)
Show answer and explanation
Correct answer: A, D. source /usr/local/bin/runme.sh; . /usr/local/bin/runme.sh
The source command and the . (dot) command both execute script instructions in the current shell without spawning a subshell, allowing variable and environment changes to persist in the current session. Both are equivalent in functionality.
Why the other options are wrong
- B. /usr/local/bin/runme.sh executes the script in a subshell if the file has execute permissions.
- C. /bin/bash /usr/local/bin/runme.sh explicitly starts a subshell by invoking bash.
- E. run is not a standard Bash command for executing scripts.
Question 27
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
Show answer and explanation
Correct answer: B. p (lowercase)
The p (lowercase) command in vi pastes the deleted content below the current line. After deleting lines with d, the deleted text is stored in a buffer, and p retrieves it to the line below the cursor.
Why the other options are wrong
- A. i (lowercase) enters insert mode rather than pasting deleted content.
- C. P (uppercase) pastes above the current line, not below.
- D. U (uppercase) undoes changes to the current line but does not paste deleted content.
- E. u (lowercase) undoes the last change but does not paste the deleted content to a new location.
Question 28
Which of the following commands can be used to determine how long the system has been running? (Choose two.)
Show answer and explanation
Correct answer: A, E. uptime; top
The uptime command displays how long the system has been running along with load averages. The top command also displays system uptime information in its header, among other process and system statistics. Both tools provide this information.
Why the other options are wrong
- B. The up command does not exist as a standard Unix/Linux utility.
- C. The time command measures execution time of a command, not system uptime; --up is not a valid option.
- D. The uname command displays system information like kernel name and architecture; -u is not a valid option for uptime.
Question 29
What is true regarding the configuration of yum? (Choose two.)
Show answer and explanation
Correct answer: C, D. The configuration of package repositories can be divided into multiple files; Repository configurations can include variables such as $basearch or $releasever
Repository configurations in yum can be split across multiple files within /etc/yum.repos.d/, allowing modular management of repositories. Additionally, yum configuration supports variable expansion including $basearch (system architecture like x86_64) and $releasever (release version) which are automatically substituted. Changes to yum configuration take effect immediately without service restart.
Why the other options are wrong
- A. There is no yum confupdate command; configuration changes are active immediately.
- B. There is no yumd service; yum is a command-line tool that does not require a service restart for configuration changes.
- E. If files exist in /etc/yum.repos.d/, they are used alongside /etc/yum.conf, not replacing it.
Question 30
Which of the following signals is sent to a process when the key combination Ctrl+C is pressed on the keyboard?
Show answer and explanation
Correct answer: E. SIGINT
When Ctrl+C is pressed on the keyboard, the SIGINT (signal interrupt) signal is sent to the process. This is the standard interrupt signal that allows users to terminate a running command from the terminal.
Why the other options are wrong
- A. SIGTERM is a termination signal typically sent by commands like kill, not by keyboard shortcuts.
- B. SIGCONT resumes a stopped process and is not triggered by Ctrl+C.
- C. SIGSTOP suspends a process and is triggered by Ctrl+Z, not Ctrl+C.
- D. SIGKILL forcefully terminates a process and cannot be caught or ignored; it is not sent by keyboard shortcuts.
That was 30 of 120.
The full LPI LPIC-1 101-500 pack has all 120 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. US$39, paid once, with free monthly updates and a pass-or-your-money-back guarantee.
Not ready yet? Get the first 60 free as one PDF by email. Get the Half Pack →
