LPI 101-500 Exam Practice Questions (P. 3)
- 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 #11
FILL BLANK -
Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)
Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)
Correct Answer:
df
df

The df command is essential for checking the disk space usage of all mounted filesystems. It presents an overview without requiring any additional parameters, making it quite straightforward to use for monitoring disk space efficiently. This command is particularly useful in managing system resources and ensuring that no file system reaches its capacity unexpectedly.
send
light_mode
delete
Question #12
Which chown command changes the ownership to dave and the group to staff on a file named data.txt?
- Achown dave/staff data.txt
- Bchown -u dave -g staff data.txt
- Cchown --user dave --group staff data.txt
- Dchown dave+staff data.txt
- Echown dave:staff data.txtMost Voted
Correct Answer:
E
E

Absolutely, the format "chown USERNAME:GROUPNAME FILENAME" nails it. For setting both user and group ownership of a file in one sweep, this is your go-to syntax. It's concise and classically used in UNIX and Linux systems. So, for changing the ownership of 'data.txt' to user 'dave' and group 'staff', the command "chown dave:staff data.txt" is perfect. This follows the universal format making it efficient and error-free.
send
light_mode
delete
Question #13
When considering the use of hard links, what are valid reasons not to use hard links?
- AHard links are not available on all Linux systems because traditional filesystems, such as ext4, do not support them
- BEach hard link has individual ownership, permissions and ACLs which can lead to unintended disclosure of file content
- CHard links are specific to one filesystem and cannot point to files on another filesystemMost Voted
- DIf users other than root should be able to create hard links, suln has to be installed and configured
- EWhen a hard linked file is changed, a copy of the file is created and consumes additional space
Correct Answer:
C
C

Hard links serve as direct pointers to the data on the disk, effectively allowing multiple filenames to point to the same file contents. However, an essential characteristic of hard links is their inability to cross filesystem boundaries—they must reside within the same filesystem as the original file. This limitation can be restrictive in environments where data needs to be linked across different storage volumes or devices, requiring alternatives like symbolic links for such purposes.
send
light_mode
delete
Question #14
In compliance with the FHS, in which of the directories are man pages found?
- A/opt/man/
- B/usr/doc/
- C/usr/share/man/Most Voted
- D/var/pkg/man
- E/var/man/
Correct Answer:
C
C

The correct directory for storing man pages as per the Filesystem Hierarchy Standard is /usr/share/man. The FHS specifies this location because it is intended for shared resources, which include man pages, widely used across various applications and users but remain architecture-independent. Hence, any documentation that fits this criterion should reside in /usr/share/man.
send
light_mode
delete
Question #15
FILL BLANK -
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Correct Answer:
cmdline
cmdline

The correct file you're referring to is indeed 'cmdline'. This file resides in the /proc directory and includes all parameters passed to the kernel at boot time by the bootloader. Understanding this helps in diagnosing boot issues or optimizing system performance, as it reveals exactly what instructions the kernel was given at startup. Make sure to check it out if you're troubleshooting or just curious about your system's boot parameters.
send
light_mode
delete
All Pages