LPI 010-160 Practice Test 75
Question 740
A student wishes to find a recently issued command without reconstructing it. A check then reveals: Mistaking command history for permanent secure audit storage gives incomplete evidence. Which targeted correction BEST restores the required behavior?
- Check the real publisher address and any supplied download hashes.
- Run `rm -rf` to display the command history.
- Inspect shell history and avoid entering secrets as command arguments.
- Treat the browser cache as Bash command history.
Explanation
Correct Answer
C:Inspect shell history and avoid entering secrets as command arguments. This repairs Terminal access and shell history and should be checked by seeing that the intended earlier command appears in the interactive shell history.
Incorrect Answers
A:Check the real publisher address and any supplied download hashes. This is a remedy for Browser HTTPS and site verification, not the symptom in this Terminal access and shell history case. Mistaking command history for permanent secure audit storage gives incomplete evidence.
B:Run `rm -rf` to display the command history. This does not remedy the diagnosed Terminal access and shell history failure; interactive shells can maintain command history but sensitive inputs should not be recorded unnecessarily.
D:Treat the browser cache as Bash command history. This does not remedy the diagnosed Terminal access and shell history failure; interactive shells can maintain command history but sensitive inputs should not be recorded unnecessarily.
Question 741
A support engineer wants long-format directory details before adjusting access. A check then reveals: Choosing a recursive option does not alone guarantee long-format columns. Which targeted correction BEST restores the required behavior?
- Request long listing format and inspect its fields.
- Use `ls -a` alone as the long-format metadata command.
- Select the recursive listing option and constrain the target path.
- Expect `pwd` to print file ownership columns.
Explanation
Correct Answer
A:Request long listing format and inspect its fields. This repairs ls -l file metadata and should be checked by seeing that the listing includes permission bits, ownership and other metadata.
Incorrect Answers
B:Use `ls -a` alone as the long-format metadata command. This does not remedy the diagnosed ls -l file metadata failure; the `-l` option provides long-format metadata rather than only names.
C:Select the recursive listing option and constrain the target path. This is a remedy for Recursive directory listings, not the symptom in this ls -l file metadata case. Choosing a recursive option does not alone guarantee long-format columns.
D:Expect `pwd` to print file ownership columns. This does not remedy the diagnosed ls -l file metadata failure; the `-l` option provides long-format metadata rather than only names.
Question 742
A team asks which bodies maintain the Free Software Definition and the Open Source Definition. A check then reveals: Treating their names and roles as interchangeable confuses licensing terminology. Which targeted correction BEST restores the required behavior?
- Identify the relevant organization's definition when discussing software freedoms or open-source approval.
- Assert that the FSF is a Linux package manager.
- Choose explicit compatible licenses separately for creative content and software.
- Claim the OSI writes the Linux kernel's source code.
Explanation
Correct Answer
A:Identify the relevant organization's definition when discussing software freedoms or open-source approval. This repairs FSF versus OSI organizations and should be checked by seeing that the organizations and their public missions are identified correctly.
Incorrect Answers
B:Assert that the FSF is a Linux package manager. This does not remedy the diagnosed FSF versus OSI organizations failure; fSF and OSI overlap in many licenses but emphasize different frameworks and programs.
C:Choose explicit compatible licenses separately for creative content and software. This is a remedy for Creative Commons and software licensing, not the symptom in this FSF versus OSI organizations case. Treating their names and roles as interchangeable confuses licensing terminology.
D:Claim the OSI writes the Linux kernel's source code. This does not remedy the diagnosed FSF versus OSI organizations failure; fSF and OSI overlap in many licenses but emphasize different frameworks and programs.
Question 743
A student wants to display their user ID and group IDs. A check then reveals: Guessing permissions from displayed usernames alone can miss group membership. Which targeted correction BEST restores the required behavior?
- Select the session tool matching current versus historical activity.
- Use `lsblk` to display UID and group information.
- Read `/etc/resolv.conf` to identify the logged-in user's groups.
- Confirm identity and group membership with id.
Explanation
Correct Answer
D:Confirm identity and group membership with id. This repairs id UID and group identity and should be checked by seeing that the output identifies the user's UID and group memberships.
Incorrect Answers
A:Select the session tool matching current versus historical activity. This is a remedy for who w and last login activity, not the symptom in this id UID and group identity case. Guessing permissions from displayed usernames alone can miss group membership.
B:Use `lsblk` to display UID and group information. This does not remedy the diagnosed id UID and group identity failure; unix authorization uses numeric UIDs and GIDs as part of its identity model.
C:Read `/etc/resolv.conf` to identify the logged-in user's groups. This does not remedy the diagnosed id UID and group identity failure; unix authorization uses numeric UIDs and GIDs as part of its identity model.
Question 744
A script filters a log and sends those results to a count command. A check then reveals: Running commands separately without connecting streams does not build the same pipeline. Which targeted correction BEST restores the required behavior?
- Use `&&` expecting filtered text to become standard input.
- Connect filtering output to the counting stage.
- Use `>` between commands to execute a pipe.
- Select overwrite or append intentionally and verify file contents.
Explanation
Correct Answer
B:Connect filtering output to the counting stage. This repairs Pipes connecting commands and should be checked by seeing that the count reflects only the lines sent from grep through the pipe.
Incorrect Answers
A:Use `&&` expecting filtered text to become standard input. This does not remedy the diagnosed Pipes connecting commands failure; `|` passes one command's standard output to the next command's standard input.
C:Use `>` between commands to execute a pipe. This does not remedy the diagnosed Pipes connecting commands failure; `|` passes one command's standard output to the next command's standard input.
D:Select overwrite or append intentionally and verify file contents. This is a remedy for Redirecting output and append, not the symptom in this Pipes connecting commands case. Running commands separately without connecting streams does not build the same pipeline.
Question 745
A user asks where many application and service configuration directories reside. A check then reveals: Editing data in `/dev` does not replace system configuration files. Which targeted correction BEST restores the required behavior?
- Identify boot files using the distribution's boot layout.
- Search only `/tmp` for persistent system configuration.
- Locate the documented configuration file under `/etc` when appropriate.
- Assume `/proc/cpuinfo` is an editable service config.
Explanation
Correct Answer
C:Locate the documented configuration file under `/etc` when appropriate. This repairs /etc configuration files and should be checked by seeing that the selected service configuration file is present under the expected directory.
Incorrect Answers
A:Identify boot files using the distribution's boot layout. This is a remedy for /boot kernel startup files, not the symptom in this /etc configuration files case. Editing data in `/dev` does not replace system configuration files.
B:Search only `/tmp` for persistent system configuration. This does not remedy the diagnosed /etc configuration files failure; `/etc` commonly stores host-specific system configuration, not arbitrary user documents.
D:Assume `/proc/cpuinfo` is an editable service config. This does not remedy the diagnosed /etc configuration files failure; `/etc` commonly stores host-specific system configuration, not arbitrary user documents.
Question 746
A team evaluates SUSE Linux Enterprise and asks how it relates to openSUSE. A check then reveals: Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes. Which targeted correction BEST restores the required behavior?
- Select the actual SUSE distribution and its documented repositories and support lifecycle.
- Use Ubuntu LTS release dates as SUSE vendor support commitments.
- Distinguish the shared kernel from the different userspace and applications.
- Assume openSUSE is a Windows kernel implementation.
Explanation
Correct Answer
A:Select the actual SUSE distribution and its documented repositories and support lifecycle. This repairs SUSE and openSUSE distributions and should be checked by seeing that the selected system's package-management commands and repositories correspond to its SUSE variant.
Incorrect Answers
B:Use Ubuntu LTS release dates as SUSE vendor support commitments. This does not remedy the diagnosed SUSE and openSUSE distributions failure; sUSE Enterprise and openSUSE are related Linux distributions but have different release and support models.
C:Distinguish the shared kernel from the different userspace and applications. This is a remedy for Android Linux kernel relationship, not the symptom in this SUSE and openSUSE distributions case. Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes.
D:Assume openSUSE is a Windows kernel implementation. This does not remedy the diagnosed SUSE and openSUSE distributions failure; sUSE Enterprise and openSUSE are related Linux distributions but have different release and support models.
Question 747
An administrator asks where sysfs presents devices and their attributes. A check then reveals: Mistaking sysfs for a persistent user-data directory can corrupt an investigation. Which targeted correction BEST restores the required behavior?
- Assume `/sys` contains only compressed backups.
- Identify boot files using the distribution's boot layout.
- Use documented sysfs interfaces for inspecting hardware state.
- Treat `/sys` as the default place for user photos.
Explanation
Correct Answer
C:Use documented sysfs interfaces for inspecting hardware state. This repairs /sys device and kernel interfaces and should be checked by seeing that the queried device or subsystem attributes reflect the active kernel state.
Incorrect Answers
A:Assume `/sys` contains only compressed backups. This does not remedy the diagnosed /sys device and kernel interfaces failure; sysfs exposes kernel device and subsystem objects through a virtual filesystem.
B:Identify boot files using the distribution's boot layout. This is a remedy for /boot kernel startup files, not the symptom in this /sys device and kernel interfaces case. Mistaking sysfs for a persistent user-data directory can corrupt an investigation.
D:Treat `/sys` as the default place for user photos. This does not remedy the diagnosed /sys device and kernel interfaces failure; sysfs exposes kernel device and subsystem objects through a virtual filesystem.
Question 748
A team compares `echo '$USER'` with `echo "$USER"` in Bash. A check then reveals: Quoting incorrectly can change text into expanded values. Which targeted correction BEST restores the required behavior?
- Expect double quotes to disable every `$variable` expansion.
- Choose quoting based on whether expansion should occur.
- Assume single quotes perform all variable expansions.
- Place command, option and target in the documented order.
Explanation
Correct Answer
B:Choose quoting based on whether expansion should occur. This repairs Single versus double shell quotes and should be checked by seeing that the single-quoted command prints `$USER` or `$HOME` literally.
Incorrect Answers
A:Expect double quotes to disable every `$variable` expansion. This does not remedy the diagnosed Single versus double shell quotes failure; bash single quotes inhibit parameter expansion while double quotes generally permit it.
C:Assume single quotes perform all variable expansions. This does not remedy the diagnosed Single versus double shell quotes failure; bash single quotes inhibit parameter expansion while double quotes generally permit it.
D:Place command, option and target in the documented order. This is a remedy for Bash command and argument structure, not the symptom in this Single versus double shell quotes case. Quoting incorrectly can change text into expanded values.
Question 749
A class asks which simple command displays a list of earlier interactive commands. A check then reveals: Listing `/var/log` is not equivalent to the user's current history list. Which targeted correction BEST restores the required behavior?
- Run `pwd` to list earlier commands.
- Use `touch` to print the command list.
- Inspect PATH and add only a trusted executable directory when necessary.
- Inspect history while avoiding sensitive command reuse.
Explanation
Correct Answer
D:Inspect history while avoiding sensitive command reuse. This repairs Shell history recall and should be checked by seeing that a numbered command list from the current shell history is displayed.
Incorrect Answers
A:Run `pwd` to list earlier commands. This does not remedy the diagnosed Shell history recall failure; shell history is separate from filesystem directory contents.
B:Use `touch` to print the command list. This does not remedy the diagnosed Shell history recall failure; shell history is separate from filesystem directory contents.
C:Inspect PATH and add only a trusted executable directory when necessary. This is a remedy for PATH and command discovery, not the symptom in this Shell history recall case. Listing `/var/log` is not equivalent to the user's current history list.
Question 750
A technician separates DNS failures from transport problems using a query utility. A check then reveals: Confusing name resolution with ICMP masks the failing layer. Which targeted correction BEST restores the required behavior?
- Run `ping` as a guaranteed DNS record listing tool.
- Test DNS answers separately from ping or routing.
- Manage a local hosts mapping for test hostnames.
- Check only the disk partitions for DNS answers.
Explanation
Correct Answer
B:Test DNS answers separately from ping or routing. This repairs host DNS name lookup and should be checked by seeing that returned DNS resource data reflects the configured resolver's answer.
Incorrect Answers
A:Run `ping` as a guaranteed DNS record listing tool. This does not remedy the diagnosed host DNS name lookup failure; `host` is a DNS lookup utility rather than a packet reachability test.
C:Manage a local hosts mapping for test hostnames. This is a remedy for /etc/hosts local name entries, not the symptom in this host DNS name lookup case. Confusing name resolution with ICMP masks the failing layer.
D:Check only the disk partitions for DNS answers. This does not remedy the diagnosed host DNS name lookup failure; `host` is a DNS lookup utility rather than a packet reachability test.