LPI 101-500 Exam Practice Questions (P. 1)
- Full Access (120 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
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?
- AXFS
- BVFAT
- Cext2Most Voted
- Dext3
- Eext4
Correct Answer:
C
C

When using mkfs without specifying a filesystem type (using -t or --type), it defaults to creating an ext2 filesystem. This behavior adheres to standard behaviors primarily observed in major Linux distributions like CentOS and Ubuntu, which reference this default setting in their respective manual pages. Thus, running mkfs directly on a block device without additional parameters results in the creation of an ext2 filesystem. This is an essential aspect of the mkfs command to remember for managing and understanding filesystems in Linux environments.
send
light_mode
delete
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?
- A0750
- B0027Most Voted
- C0036
- D7640
- E0029
Correct Answer:
B
B

The correct umask value to achieve the specified permissions for directories is indeed 0027. Umask values modify default permissions set for directories and files; a '0' creates no change, '2' removes write permissions, and '7' strips read, write, and execute permissions. Here, umask 0027 results in directories where the user has full access (7—0), the group has read and execute permissions (5—2), and others have no permissions (0—7). This setup fits precisely the requirements of the query, confirming the correctness of option B.
send
light_mode
delete
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?
- Atune2fs -d 200 /dev/sda1
- Btune2fs -i 200 /dev/sda1
- Ctune2fs -c 200 /dev/sda1
- Dtune2fs -n 200 /dev/sda1
- Etune2fs --days 200 /dev/sda1
Correct Answer:
B
B

The `tune2fs -i` command option is essential when scheduling filesystem checks based on a time interval, specifically in days. This makes it an effective tool for managing the maintenance frequency of your system’s filesystem, ensuring that it remains healthy and performs optimally without frequent manual checks. This is incredibly useful when dealing with systems that require high availability with minimized downtime. Remember, regular maintenance helps prevent unexpected failures.
send
light_mode
delete
Question #4
Which is the default percentage of reserved space for the root user on new ext4 filesystems?
- A10%
- B3%
- C15%
- D0%
- E5%Most Voted
Correct Answer:
E
E

The default reserved space for the root user on new ext4 filesystems is 5%. This percentage is set aside to ensure that the root user can maintain system stability and functionality, preventing possible issues when the filesystem reaches full capacity. This reserved space allows system and administrative processes to continue functioning smoothly without interruption even when disk usage is high.
send
light_mode
delete
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?
- Asystemd ignores any manual mounts which are not done using the systemctl mount command
- BThe command systemctl mountsync can be used to create a mount unit based on the existing mount
- Csystemd automatically generates a mount unit and monitors the mount point without changing it
- DUnless a systemd mount unit is created, systemd unmounts the file system after a short period of timeMost Voted
- Esystemctl unmount must be used to remove the mount because system opens a file descriptor on the mount point
Correct Answer:
C
C

The comments reveal a misunderstanding regarding systemd's behavior with manual mounts. While many users often assume that mounts must be manually managed when not declared in /etc/fstab, systemd, in fact, does generate a dynamic mount unit for manual mounts that appears in /proc/self/mountinfo. This means it recognizes and monitors the mount but doesn't alter its status unless explicitly commanded or configured. Therefore, option C correctly states the behavior of systemd with manually mounted filesystems not listed in /etc/fstab. Always ensure system attributes for manually mounted filesystems regularly to avoid surprises—systemd helps in this by tracking them, albeit without any modifications.
send
light_mode
delete
All Pages