LPI 010-160 Practice Test 79
Question 780
A club uses ARM-based Raspberry Pi boards and must select an appropriate distribution image. A check then reveals: A generic desktop image for the wrong processor architecture may not boot. Which targeted correction BEST restores the required behavior?
- Match the OS image to the Raspberry Pi model and processor architecture.
- Choose a Windows device driver instead of a Linux distribution image.
- Confirm the LTS release and its supported update channels before rollout.
- Flash an x86-only installation image to any ARM board.
Explanation
Correct Answer
A:Match the OS image to the Raspberry Pi model and processor architecture. This repairs Raspberry Pi Linux deployment and should be checked by seeing that the board boots to a usable Linux userspace with the expected peripherals supported.
Incorrect Answers
B:Choose a Windows device driver instead of a Linux distribution image. This does not remedy the diagnosed Raspberry Pi Linux deployment failure; raspberry Pi OS is a Debian-derived Linux distribution built for supported Raspberry Pi hardware.
C:Confirm the LTS release and its supported update channels before rollout. This is a remedy for Ubuntu long-term support releases, not the symptom in this Raspberry Pi Linux deployment case. A generic desktop image for the wrong processor architecture may not boot.
D:Flash an x86-only installation image to any ARM board. This does not remedy the diagnosed Raspberry Pi Linux deployment failure; raspberry Pi OS is a Debian-derived Linux distribution built for supported Raspberry Pi hardware.
Question 781
An administrator looks for a command's synopsis and documented options locally. A check then reveals: Using a process monitor does not display the command's manual. Which targeted correction BEST restores the required behavior?
- Use `ls -a` as complete documentation for every option.
- Read the appropriate man entry and section.
- Run `mkdir ls` and expect manual text.
- Choose the manual section that matches the task.
Explanation
Correct Answer
B:Read the appropriate man entry and section. This repairs man pages and sections and should be checked by seeing that the manual shows a synopsis and option descriptions for the named command.
Incorrect Answers
A:Use `ls -a` as complete documentation for every option. This does not remedy the diagnosed man pages and sections failure; manual pages are structured command and interface documentation.
C:Run `mkdir ls` and expect manual text. This does not remedy the diagnosed man pages and sections failure; manual pages are structured command and interface documentation.
D:Choose the manual section that matches the task. This is a remedy for Manual sections for commands and config, not the symptom in this man pages and sections case. Using a process monitor does not display the command's manual.
Question 782
An administrator wants to identify a disk versus a partition in the `/dev/sd*` naming scheme. A check then reveals: Writing to the whole disk instead of a partition can destroy partition metadata. Which targeted correction BEST restores the required behavior?
- Match the storage medium to I/O requirements and budget.
- Verify device identities before any destructive operation.
- Edit `/dev/sda` with a word processor as safe partition management.
- Assume `/dev/sda1` is always a normal text file in home.
Explanation
Correct Answer
B:Verify device identities before any destructive operation. This repairs Linux block devices and partitions and should be checked by seeing that the device list distinguishes the whole block device from numbered partitions.
Incorrect Answers
A:Match the storage medium to I/O requirements and budget. This is a remedy for SSD versus rotational disk, not the symptom in this Linux block devices and partitions case. Writing to the whole disk instead of a partition can destroy partition metadata.
C:Edit `/dev/sda` with a word processor as safe partition management. This does not remedy the diagnosed Linux block devices and partitions failure; device nodes can represent disks and partitions; naming depends on driver and hardware.
D:Assume `/dev/sda1` is always a normal text file in home. This does not remedy the diagnosed Linux block devices and partitions failure; device nodes can represent disks and partitions; naming depends on driver and hardware.
Question 783
A training organization creates many users and needs consistent default dotfiles. A check then reveals: Editing a current user's home does not change defaults for future users. Which targeted correction BEST restores the required behavior?
- Store shell defaults only in `/proc/cpuinfo`.
- Manage group membership with supported tools and confirm it in account records.
- Write new-user template files into `/dev/null`.
- Maintain the skeleton files and verify the account-creation settings.
Explanation
Correct Answer
D:Maintain the skeleton files and verify the account-creation settings. This repairs /etc/skel new home templates and should be checked by seeing that newly created homes include the intended template files when supported by useradd configuration.
Incorrect Answers
A:Store shell defaults only in `/proc/cpuinfo`. This does not remedy the diagnosed /etc/skel new home templates failure; `/etc/skel` is a template directory for new home directories, not a live shared home.
B:Manage group membership with supported tools and confirm it in account records. This is a remedy for /etc/group account membership records, not the symptom in this /etc/skel new home templates case. Editing a current user's home does not change defaults for future users.
C:Write new-user template files into `/dev/null`. This does not remedy the diagnosed /etc/skel new home templates failure; `/etc/skel` is a template directory for new home directories, not a live shared home.
Question 784
A student must inspect a tree without opening each child directory manually. A check then reveals: Plain `ls` on the top directory omits many descendants. Which targeted correction BEST restores the required behavior?
- Inspect the path with `pwd` before performing relative operations.
- Use `ls -d` expecting full recursive contents.
- Select the recursive listing option and constrain the target path.
- Run `pwd -R` to list files.
Explanation
Correct Answer
C:Select the recursive listing option and constrain the target path. This repairs Recursive directory listings and should be checked by seeing that entries from subdirectories appear below their corresponding directory labels.
Incorrect Answers
A:Inspect the path with `pwd` before performing relative operations. This is a remedy for pwd current directory, not the symptom in this Recursive directory listings case. Plain `ls` on the top directory omits many descendants.
B:Use `ls -d` expecting full recursive contents. This does not remedy the diagnosed Recursive directory listings failure; recursive listing traverses nested directory contents rather than only a single level.
D:Run `pwd -R` to list files. This does not remedy the diagnosed Recursive directory listings failure; recursive listing traverses nested directory contents rather than only a single level.
Question 785
An administrator searches for README and example configuration files shipped with a package. A check then reveals: Using a log directory as the only documentation source can miss package instructions. Which targeted correction BEST restores the required behavior?
- Choose the manual section that matches the task.
- Assume `/dev/null` stores installed package manuals.
- Inspect the relevant package documentation directory.
- Search only `/tmp` for permanent packaged guides.
Explanation
Correct Answer
C:Inspect the relevant package documentation directory. This repairs /usr/share/doc documentation directory and should be checked by seeing that package-specific README or documentation files can be opened when installed.
Incorrect Answers
A:Choose the manual section that matches the task. This is a remedy for Manual sections for commands and config, not the symptom in this /usr/share/doc documentation directory case. Using a log directory as the only documentation source can miss package instructions.
B:Assume `/dev/null` stores installed package manuals. This does not remedy the diagnosed /usr/share/doc documentation directory failure; distributions often place packaged documentation under `/usr/share/doc`.
D:Search only `/tmp` for permanent packaged guides. This does not remedy the diagnosed /usr/share/doc documentation directory failure; distributions often place packaged documentation under `/usr/share/doc`.
Question 786
A backup operator wants to ascend one level of the current directory hierarchy. A check then reveals: Using `.` instead would refer to the current directory, not the parent. Which targeted correction BEST restores the required behavior?
- Run `cd /` expecting only one level of ascent.
- Change into `..` and confirm the resulting path.
- Supply the explicit absolute path for location-independent navigation.
- Use `cd .` expecting to move up.
Explanation
Correct Answer
B:Change into `.` and confirm the resulting path. This repairs cd parent directory and should be checked by seeing that `pwd` after the change displays the parent directory.
Incorrect Answers
A:Run `cd /` expecting only one level of ascent. This does not remedy the diagnosed cd parent directory failure; the `.` component denotes the parent directory in relative paths.
C:Supply the explicit absolute path for location-independent navigation. This is a remedy for Absolute filesystem paths, not the symptom in this cd parent directory case. Using `.` instead would refer to the current directory, not the parent.
D:Use `cd .` expecting to move up. This does not remedy the diagnosed cd parent directory failure; the `.` component denotes the parent directory in relative paths.
Question 787
A user asks what kind of filesystem `/proc` represents. A check then reveals: Treating procfs entries as permanent backups can give misleading results. Which targeted correction BEST restores the required behavior?
- Read appropriate `/proc` interfaces for transient system state.
- Store application reports permanently in `/proc`.
- Check service logging configuration and the appropriate log files.
- Treat `/proc` as an ordinary photo directory.
Explanation
Correct Answer
A:Read appropriate `/proc` interfaces for transient system state. This repairs /proc virtual process information and should be checked by seeing that a process-specific directory or kernel information file reflects the running system.
Incorrect Answers
B:Store application reports permanently in `/proc`. This does not remedy the diagnosed /proc virtual process information failure; procfs presents virtual runtime data rather than a normal persistent disk archive.
C:Check service logging configuration and the appropriate log files. This is a remedy for /var/log system messages, not the symptom in this /proc virtual process information case. Treating procfs entries as permanent backups can give misleading results.
D:Treat `/proc` as an ordinary photo directory. This does not remedy the diagnosed /proc virtual process information failure; procfs presents virtual runtime data rather than a normal persistent disk archive.
Question 788
A trainee needs only the first five lines of a long CSV file. A check then reveals: Reversing head and tail returns the wrong part of a file. Which targeted correction BEST restores the required behavior?
- Use `head` to guarantee the final log lines.
- Choose head or tail according to the desired section.
- Use `sort` to read only the newest appended lines.
- Apply case-insensitive matching when letter case is not meaningful.
Explanation
Correct Answer
B:Choose head or tail according to the desired section. This repairs head and tail line selection and should be checked by seeing that only the requested prefix or suffix lines appear.
Incorrect Answers
A:Use `head` to guarantee the final log lines. This does not remedy the diagnosed head and tail line selection failure; `head` selects beginning lines and `tail` selects ending lines.
C:Use `sort` to read only the newest appended lines. This does not remedy the diagnosed head and tail line selection failure; `head` selects beginning lines and `tail` selects ending lines.
D:Apply case-insensitive matching when letter case is not meaningful. This is a remedy for grep -i ignore case, not the symptom in this head and tail line selection case. Reversing head and tail returns the wrong part of a file.
Question 789
A report contains status records and a user needs to filter by a known literal keyword. A check then reveals: Viewing the entire file does not isolate matching records. Which targeted correction BEST restores the required behavior?
- Select a grep pattern that matches the target term.
- Use `sort logfile` expecting it to filter ERROR lines.
- Run `wc -l logfile` expecting the matching contents.
- Quote the regex so grep interprets it rather than the shell.
Explanation
Correct Answer
A:Select a grep pattern that matches the target term. This repairs grep fixed text matching and should be checked by seeing that only lines containing the requested pattern appear in the output.
Incorrect Answers
B:Use `sort logfile` expecting it to filter ERROR lines. This does not remedy the diagnosed grep fixed text matching failure; grep filters text lines by a pattern, rather than modifying the source file.
C:Run `wc -l logfile` expecting the matching contents. This does not remedy the diagnosed grep fixed text matching failure; grep filters text lines by a pattern, rather than modifying the source file.
D:Quote the regex so grep interprets it rather than the shell. This is a remedy for Regular-expression dot and repetition, not the symptom in this grep fixed text matching case. Viewing the entire file does not isolate matching records.
Question 790
A backup job must preserve a directory tree in a .tar file. A check then reveals: Compression is not automatically enabled by every tar archive creation. Which targeted correction BEST restores the required behavior?
- Use `gzip project/` to collect an entire directory into one tar archive.
- Run `tar -xf project.tar project/` expecting to create a new archive.
- Use zip and unzip with the desired member paths.
- Specify creation and output file options with the source directory.
Explanation
Correct Answer
D:Specify creation and output file options with the source directory. This repairs Creating a tar archive and should be checked by seeing that the archive lists the intended files when inspected.
Incorrect Answers
A:Use `gzip project/` to collect an entire directory into one tar archive. This does not remedy the diagnosed Creating a tar archive failure; `tar -c` creates an archive and `-f` supplies its filename.
B:Run `tar -xf project.tar project/` expecting to create a new archive. This does not remedy the diagnosed Creating a tar archive failure; `tar -c` creates an archive and `-f` supplies its filename.
C:Use zip and unzip with the desired member paths. This is a remedy for ZIP archives and unzip, not the symptom in this Creating a tar archive case. Compression is not automatically enabled by every tar archive creation.