LPIC 1 101-500 Practice Questions with Explanations

Free LPIC 1 101-500 practice questions. 23 of them, each with the correct answer, a full explanation, and the reason every other option is wrong. These are real questions from the 101-500 exam, not paraphrases, and every explanation is written out rather than just marking the right letter.

They are drawn from the same bank as the full 101-500 pack, which has 120 questions in total.

Get the full 101-500 question bank (120 questions) →

101-500 practice questions

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?

  • A. XFS
  • B. VFAT
  • C. ext2
  • D. ext3
  • E. ext4
Show answer and explanation ▾

Correct answer: C

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?

  • A. 0750
  • B. 0027
  • C. 0036
  • D. 7640
  • E. 0029
Show answer and explanation ▾

Correct answer: B

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?

  • A. tune2fs -d 200 /dev/sda1
  • B. tune2fs -i 200 /dev/sda1
  • C. tune2fs -c 200 /dev/sda1
  • D. tune2fs -n 200 /dev/sda1
  • E. tune2fs --days 200 /dev/sda1
Show answer and explanation ▾

Correct answer: B

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?

  • A. 10%
  • B. 3%
  • C. 15%
  • D. 0%
  • E. 5%
Show answer and explanation ▾

Correct answer: E

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?

  • A. systemd ignores any manual mounts which are not done using the systemctl mount command
  • B. The command systemctl mountsync can be used to create a mount unit based on the existing mount
  • C. systemd automatically generates a mount unit and monitors the mount point without changing it
  • D. Unless a systemd mount unit is created, systemd unmounts the file system after a short period of time
  • E. systemctl unmount must be used to remove the mount because system opens a file descriptor on the mount point
Show answer and explanation ▾

Correct answer: C

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?

  • A. It makes the contents of one directory available in another directory
  • B. It mounts all available filesystems to the current directory
  • C. It mounts all user mountable filesystems to the user's home directory
  • D. It mounts all file systems listed in /etc/fstab which have the option userbind set
  • E. It permanently mounts a regular file to a directory
Show answer and explanation ▾

Correct answer: A

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 output from the command ls -i: How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?

  • A. ln -h a.txt c.txt
  • B. ln c.txt a.txt
  • C. ln a.txt c.txt
  • D. ln -f c.txt a.txt
  • E. ln -i 525385 c.txt
Show answer and explanation ▾

Correct answer: C

The command ln a.txt c.txt creates a hard link named c.txt that points to the same inode as a.txt. Hard links are additional directory entries that reference the same inode number, meaning both filenames will share inode 525385. The syntax for creating a hard link is ln <existing_file> <new_link_name>, making option C the correct answer.

Why the other options are wrong:

  • A. The -h flag is used with symbolic links and doesn't apply to hard links; this would not create a hard link to the same inode.
  • B. This reverses the arguments; it attempts to create a hard link named a.txt pointing to c.txt, which doesn't exist yet, and would fail.
  • D. The -f flag forces removal of existing files but doesn't create a hard link to the same inode; the argument order is also incorrect.
  • E. The ln command does not support an -i flag to specify inode numbers; inodes cannot be directly assigned when creating links.

Question 8

Which chown command changes the ownership to dave and the group to staff on a file named data.txt?

  • A. chown dave/staff data.txt
  • B. chown -u dave -g staff data.txt
  • C. chown --user dave --group staff data.txt
  • D. chown dave+staff data.txt
  • E. chown dave:staff data.txt
Show answer and explanation ▾

Correct answer: E

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 9

When considering the use of hard links, what are valid reasons not to use hard links?

  • A. Hard links are not available on all Linux systems because traditional filesystems, such as ext4, do not support them
  • B. Each hard link has individual ownership, permissions and ACLs which can lead to unintended disclosure of file content
  • C. Hard links are specific to one filesystem and cannot point to files on another filesystem
  • D. If users other than root should be able to create hard links, suln has to be installed and configured
  • E. When a hard linked file is changed, a copy of the file is created and consumes additional space
Show answer and explanation ▾

Correct answer: C

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 10

In compliance with the FHS, in which of the directories are man pages found?

  • A. /opt/man/
  • B. /usr/doc/
  • C. /usr/share/man/
  • D. /var/pkg/man
  • E. /var/man/
Show answer and explanation ▾

Correct answer: C

According to the Filesystem Hierarchy Standard (FHS), manual pages are stored in /usr/share/man/. This is the standard location for architecture-independent manual page files that are shared across systems.

Why the other options are wrong:

  • A. /opt/man/ is not an FHS-specified location for man pages; /opt is for optional third- party software.
  • B. /usr/doc/ is not the FHS location for man pages; documentation may be elsewhere.
  • D. /var/pkg/man is not a standard FHS location for man pages.
  • E. /var/man/ is not the FHS location; /var is for variable data, not man pages.

Question 11

What is the process ID number of the init process on a System V init based system?

  • A. -1
  • B. 0
  • C. 1
  • D. It is different with each reboot
  • E. It is set to the current run level
Show answer and explanation ▾

Correct answer: C

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 12

Which daemon handles power management events on a Linux system?

  • A. acpid
  • B. batteryd
  • C. pwrmgntd
  • D. psd
  • E. inetd
Show answer and explanation ▾

Correct answer: A

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

A faulty kernel module is causing issues with a network interface card. Which of the following actions ensures that this module is not loaded automatically when the system boots?

  • A. Using lsmod --remove --autoclean without specifying the name of a specific module
  • B. Using modinfo -k followed by the name of the offending module
  • C. Using modprobe -r followed by the name of the offending module
  • D. Adding a blacklist line including the name of the offending module to the file /etc/modprobe.d/blacklist.conf
  • E. Deleting the kernel module's directory from the file system and recompiling the kernel, including its modules
Show answer and explanation ▾

Correct answer: D

Adding a blacklist entry to /etc/modprobe.d/blacklist.conf is the standard method to prevent a kernel module from loading automatically at boot time. By adding a line like 'blacklist modulename', the module management system will skip loading that module during initialization.

Why the other options are wrong:

  • A. lsmod --remove --autoclean is not a valid command for preventing automatic module loading.
  • B. modinfo -k is not used to prevent module loading; modinfo is for displaying module information.
  • C. modprobe -r removes a loaded module temporarily but does not prevent automatic loading at boot; it requires permanent configuration.
  • E. Deleting module directories and recompiling the kernel is unnecessarily invasive and not the standard approach.

Question 14

What is the first program the Linux kernel starts at boot time when using System V init?

  • A. /lib/init.so
  • B. /proc/sys/kernel/init
  • C. /etc/rc.d/rcinit
  • D. /sbin/init
  • E. /boot/init
Show answer and explanation ▾

Correct answer: D

The /sbin/init program (also known as the init process with PID 1) is the first user-space program started by the Linux kernel during boot when using System V initialization. This process then reads configuration files and spawns other services. The other paths either do not exist in standard Linux systems or are not valid init locations.

Why the other options are wrong:

  • A. /lib/init.so is not a standard init program in System V systems.
  • B. /proc/sys/kernel/init is a proc filesystem entry, not an executable program.
  • C. /etc/rc.d/rcinit is not the first program; init starts before these scripts run.
  • E. /boot/init does not exist in standard Linux systems; init is located in /sbin.

Question 15

A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?

  • A. apt-get search /etc/debian_version
  • B. apt -r /etc/debian_version
  • C. find /etc/debian_version -dpkg
  • D. dpkg -S /etc/debian_version
  • E. apt-file /etc/debian_version
Show answer and explanation ▾

Correct answer: D

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 16

What is contained on the EFI System Partition?

  • A. The Linux root file system
  • B. The first stage boot loader
  • C. The default swap space file
  • D. The Linux default shell binaries
  • E. The user home directories
Show answer and explanation ▾

Correct answer: B

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 17

Which of the following commands installs all packages with a name ending with the string foo?

  • A. zypper get '*foo'
  • B. zypper update 'foo?'
  • C. zypper force 'foo*'
  • D. zypper install '*foo'
  • E. zypper add '.*foo'
Show answer and explanation ▾

Correct answer: D

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 18

Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?

  • A. grub2 install /dev/sdc
  • B. grub-mkrescue /dev/sdc
  • C. grub-mbrinstall /dev/sdc
  • D. grub-setup /dev/sdc
  • E. grub-install /dev/sdc
Show answer and explanation ▾

Correct answer: E

The grub-install command is the standard utility for installing GRUB 2 to a boot sector. The command grub-install /dev/sdc installs GRUB 2 to the master boot record of the third hard disk. The /dev/sdc device identifier refers to the third SATA/IDE drive on the system.

Why the other options are wrong:

  • A. grub2 is not a valid command; the correct command is grub-install.
  • B. grub-mkrescue creates a bootable rescue image, not an MBR installation.
  • C. grub-mbrinstall is not a valid GRUB 2 command.
  • D. grub-setup is a lower-level utility and not the standard command for installing GRUB 2 to the MBR.

Question 19

Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?

  • A. 7
  • B. 82
  • C. 83
  • D. 8e
  • E. fd
Show answer and explanation ▾

Correct answer: B

Partition type 82 (hexadecimal) is the standard identifier for Linux swap partitions in the MBR partition table. When creating swap space on a Linux system using fdisk or similar tools, this type ID designates the partition as swap space.

Why the other options are wrong:

  • A. Type 7 is used for NTFS/exFAT filesystems.
  • C. Type 83 is used for Linux native filesystems (ext2, ext3, ext4, etc.).
  • D. Type 8e is used for Linux LVM (Logical Volume Management).
  • E. Type fd is used for Linux RAID auto-detect.

Question 20

Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

  • A. auto-update
  • B. dist-upgrade
  • C. full-upgrade
  • D. install
  • E. update
Show answer and explanation ▾

Correct answer: B

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.

Question 21

Which command uninstalls a package but keeps its configuration files in case the package is re-installed?

  • A. dpkg -s pkgname
  • B. dpkg -L pkgname
  • C. dpkg -P pkgname
  • D. dpkg -v pkgname
  • E. dpkg -r pkgname
Show answer and explanation ▾

Correct answer: E

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 22

Which of the following commands lists the dependencies of the RPM package file foo.rpm?

  • A. rpm -qpR foo.rpm
  • B. rpm -dep foo
  • C. rpm -ld foo.rpm
  • D. rpm -R foo.rpm
  • E. rpm -pD foo
Show answer and explanation ▾

Correct answer: A

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 23

What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

  • A. 9
  • B. 15
  • C. 19
  • D. 49
  • E. 99
Show answer and explanation ▾

Correct answer: C

Regular (non-root) users can assign niceness values from 0 to 19 when using the nice command to execute a new process. The maximum value of 19 represents the lowest priority (highest niceness), allowing a user process to be de-prioritized. Root users can assign negative values for higher priority.

Why the other options are wrong:

  • A. 9 is within the valid range but not the maximum value a regular user can assign.
  • B. 15 is within the valid range but not the maximum value a regular user can assign.
  • D. 49 exceeds the valid niceness range which is 0-19 for regular users.
  • E. 99 far exceeds the valid niceness range which is 0-19 for regular users.

Get the complete 101-500 bank

These 23 questions are roughly 29% of the bank. The full pack has 120 real 101-500 questions, each with the same depth of explanation, plus a questions-only PDF for timed practice and free updates forever.

View the full LPIC 1 101-500 question bank →

Related exams

Browse free practice questions for every exam →

Back to blog