LPIC-1 Exam 101

Here you have the best LPI 101-500 practice exam questions

  • You have 120 total questions to study from
  • Each page has 5 questions, making a total of 24 pages
  • You can navigate through the pages using the buttons at the bottom
  • This questions were last updated on December 3, 2024
Question 1 of 120

Which type of file system is created by mkfs when it is executed with the block device name only and without any additional parameters?

    Correct Answer: C

    When the mkfs command is executed with only the block device name and no additional parameters, it creates an ext2 file system by default. This is because, without specifying the filesystem type, mkfs falls back to its default type, which is ext2.

Question 2 of 120

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?

    Correct Answer: B

    The umask value determines the default permissions for newly created directories and files. The value 0027 means: the first digit (0) is usually ignored and indicates that the value is in octal form. The second digit (0) subtracts no permissions from the user (owner). The third digit (2) subtracts write permissions from the group, leaving read and execute permissions. The fourth digit (7) subtracts read, write, and execute permissions from others. This results in permissions of 750 for new directories, which means the owner can read, write, and execute; the group can read and execute; and others have no access. This matches the requirement of directories being readable, writable, and listable by the owning user, readable and listable by the owning group, and not accessible at all by everyone else.

Question 3 of 120

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?

    Correct Answer: B

    The command 'tune2fs -i 200 /dev/sda1' changes the interval between filesystem checks to 200 days. The '-i' option is specifically used to set the maximum interval between checks in days for the ext3 filesystem.

Question 4 of 120

Which is the default percentage of reserved space for the root user on new ext4 filesystems?

    Correct Answer: E

    The default percentage of reserved space for the root user on new ext4 filesystems is 5%. This reserved space is used to allow the root user to perform critical system operations even when the filesystem is nearly full, ensuring system stability and preventing system crashes.

Question 5 of 120

Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?

    Correct Answer: C

    When a file system that is not listed in /etc/fstab nor known to the system is manually mounted, systemd automatically generates a mount unit and monitors the mount point without altering it. This behavior ensures that the manually mounted file system is recognized and managed by systemd, similar to other mount points that are defined through unit files or /etc/fstab. Other options are incorrect as they either propose non-existent commands or misinterpret systemd’s role in mount point management.