LPI 010-160 Practice Test 82
Question 810
A shell prompt is deep inside a project and the operator wants a home-relative path. A check then reveals: Confusing home with `/` changes the destination. Which targeted correction BEST restores the required behavior?
- Treat `~` as the current directory marker.
- Use `cd /` as the user's home directory on every system.
- Navigate to the user's home explicitly.
- Inspect the path with `pwd` before performing relative operations.
Explanation
Correct Answer
C:Navigate to the user's home explicitly. This repairs Home directory shorthand and should be checked by seeing that `pwd` shows the current user's configured home directory.
Incorrect Answers
A:Treat `~` as the current directory marker. This does not remedy the diagnosed Home directory shorthand failure; shell tilde expansion and bare `cd` provide convenient home-directory navigation.
B:Use `cd /` as the user's home directory on every system. This does not remedy the diagnosed Home directory shorthand failure; shell tilde expansion and bare `cd` provide convenient home-directory navigation.
D:Inspect the path with `pwd` before performing relative operations. This is a remedy for pwd current directory, not the symptom in this Home directory shorthand case. Confusing home with `/` changes the destination.
Question 811
An administrator chooses between a stable distribution release and an unreleased beta. A check then reveals: Using a beta build as a mission-critical default can expose unstable behavior. Which targeted correction BEST restores the required behavior?
- Avoid all security updates to keep applications stable.
- Verify the release phase and lifecycle before installation.
- Assume a development preview has the same production guarantee as stable.
- Select an interface based on repeatability and task requirements.
Explanation
Correct Answer
B:Verify the release phase and lifecycle before installation. This repairs Stable versus beta distribution releases and should be checked by seeing that the chosen release has a published support/update status rather than pre-release warnings.
Incorrect Answers
A:Avoid all security updates to keep applications stable. This does not remedy the diagnosed Stable versus beta distribution releases failure; stable release channels prioritize reliability while betas exist for testing upcoming changes.
C:Assume a development preview has the same production guarantee as stable. This does not remedy the diagnosed Stable versus beta distribution releases failure; stable release channels prioritize reliability while betas exist for testing upcoming changes.
D:Select an interface based on repeatability and task requirements. This is a remedy for GUI and command-line tradeoffs, not the symptom in this Stable versus beta distribution releases case. Using a beta build as a mission-critical default can expose unstable behavior.
Question 812
An archive job sets up a new nested output path in one command. A check then reveals: Plain mkdir on the deepest path fails when parents do not exist. Which targeted correction BEST restores the required behavior?
- Create nested paths with the parent-creation option.
- Run `touch reports/2026/nov` as a directory constructor.
- Use `rmdir -p` to create missing ancestors.
- Use recursive copy and verify the destination tree.
Explanation
Correct Answer
A:Create nested paths with the parent-creation option. This repairs mkdir -p nested directories and should be checked by seeing that each directory component exists after execution without separate manual creation.
Incorrect Answers
B:Run `touch reports/2026/nov` as a directory constructor. This does not remedy the diagnosed mkdir -p nested directories failure; `mkdir -p` creates intermediate directories as needed.
C:Use `rmdir -p` to create missing ancestors. This does not remedy the diagnosed mkdir -p nested directories failure; `mkdir -p` creates intermediate directories as needed.
D:Use recursive copy and verify the destination tree. This is a remedy for cp -r directory trees, not the symptom in this mkdir -p nested directories case. Plain mkdir on the deepest path fails when parents do not exist.
Question 813
A mobile-team discussion asks why Android is called Linux-based despite different user applications. A check then reveals: Treating the Android UI as a standard Linux desktop misstates application compatibility. Which targeted correction BEST restores the required behavior?
- Claim Android relies on the Windows NT kernel.
- Distinguish the shared kernel from the different userspace and applications.
- Identify the distribution family and use its configured APT repository tooling.
- Assume every GNU/Linux desktop binary runs unchanged as an Android app.
Explanation
Correct Answer
B:Distinguish the shared kernel from the different userspace and applications. This repairs Android Linux kernel relationship and should be checked by seeing that the architecture identifies a Linux kernel underneath Android system services.
Incorrect Answers
A:Claim Android relies on the Windows NT kernel. This does not remedy the diagnosed Android Linux kernel relationship failure; kernel lineage does not require Android to use a conventional GNU desktop userspace.
C:Identify the distribution family and use its configured APT repository tooling. This is a remedy for Debian-derived package family, not the symptom in this Android Linux kernel relationship case. Treating the Android UI as a standard Linux desktop misstates application compatibility.
D:Assume every GNU/Linux desktop binary runs unchanged as an Android app. This does not remedy the diagnosed Android Linux kernel relationship failure; kernel lineage does not require Android to use a conventional GNU desktop userspace.
Question 814
A training app requires a Linux-hosted relational database service. A check then reveals: Choosing an HTTP server alone does not provide relational tables. Which targeted correction BEST restores the required behavior?
- Select a supported Firefox release and review its browser settings.
- Deploy a supported relational database and configure access permissions.
- Use NFS exports instead of SQL tables.
- Set a Firefox browser profile as the relational database.
Explanation
Correct Answer
B:Deploy a supported relational database and configure access permissions. This repairs MariaDB and MySQL data stores and should be checked by seeing that sQL queries retrieve stored records through the configured database service.
Incorrect Answers
A:Select a supported Firefox release and review its browser settings. This is a remedy for Firefox web browsing, not the symptom in this MariaDB and MySQL data stores case. Choosing an HTTP server alone does not provide relational tables.
C:Use NFS exports instead of SQL tables. This does not remedy the diagnosed MariaDB and MySQL data stores failure; mariaDB and MySQL are relational database servers rather than file-sharing daemons.
D:Set a Firefox browser profile as the relational database. This does not remedy the diagnosed MariaDB and MySQL data stores failure; mariaDB and MySQL are relational database servers rather than file-sharing daemons.
Question 815
A colleague asks for quick usage information without reading a complete manual. A check then reveals: Assuming undocumented options exist can produce invalid command invocations. Which targeted correction BEST restores the required behavior?
- Check the locate index's freshness before relying on results.
- Run `command --erase` and assume it prints help.
- Consult help output or the documented manual.
- Inspect the host IP address to list CLI flags.
Explanation
Correct Answer
C:Consult help output or the documented manual. This repairs Command --help output and should be checked by seeing that usage text and options print to the terminal.
Incorrect Answers
A:Check the locate index's freshness before relying on results. This is a remedy for locate database lookup, not the symptom in this Command --help output case. Assuming undocumented options exist can produce invalid command invocations.
B:Run `command --erase` and assume it prints help. This does not remedy the diagnosed Command --help output failure; many command-line programs offer a brief `--help` option although not every program follows it.
D:Inspect the host IP address to list CLI flags. This does not remedy the diagnosed Command --help output failure; many command-line programs offer a brief `--help` option although not every program follows it.
Question 816
A backup script processes filenames that may contain whitespace. A check then reveals: An unquoted expansion may split the path into two command arguments. Which targeted correction BEST restores the required behavior?
- Surround arguments with single quotes that prevent the desired variable expansion.
- Use an arithmetic context for integer calculations.
- Pass `$1` unquoted and assume whitespace is always preserved.
- Use quoted expansions for pathname values.
Explanation
Correct Answer
D:Use quoted expansions for pathname values. This repairs Quoting script argument expansion and should be checked by seeing that the intended pathname remains one argument when passed to another command.
Incorrect Answers
A:Surround arguments with single quotes that prevent the desired variable expansion. This does not remedy the diagnosed Quoting script argument expansion failure; quoted expansion prevents unintended splitting and globbing of argument values.
B:Use an arithmetic context for integer calculations. This is a remedy for Bash arithmetic expansion, not the symptom in this Quoting script argument expansion case. An unquoted expansion may split the path into two command arguments.
C:Pass `$1` unquoted and assume whitespace is always preserved. This does not remedy the diagnosed Quoting script argument expansion failure; quoted expansion prevents unintended splitting and globbing of argument values.
Question 817
A team adds a colleague to an additional project group without discarding existing groups. A check then reveals: Omitting append can unintentionally drop previous supplementary memberships. Which targeted correction BEST restores the required behavior?
- Append group membership and refresh the user's session if needed.
- Run `usermod -G project username` and assume all prior groups are preserved.
- Verify available UIDs and account mapping before provisioning.
- Set every file in the project to mode 777 as the membership solution.
Explanation
Correct Answer
A:Append group membership and refresh the user's session if needed. This repairs Supplementary group membership and should be checked by seeing that `id username` reflects both prior supplementary groups and the new project group.
Incorrect Answers
B:Run `usermod -G project username` and assume all prior groups are preserved. This does not remedy the diagnosed Supplementary group membership failure; the `-a` append behavior prevents replacing the entire supplementary group list when using usermod -G.
C:Verify available UIDs and account mapping before provisioning. This is a remedy for UID uniqueness and identity mapping, not the symptom in this Supplementary group membership case. Omitting append can unintentionally drop previous supplementary memberships.
D:Set every file in the project to mode 777 as the membership solution. This does not remedy the diagnosed Supplementary group membership failure; the `-a` append behavior prevents replacing the entire supplementary group list when using usermod -G.
Question 818
An administrator checks a script's permission bits before sharing it. A check then reveals: Misreading a group bit as an owner bit can lead to wrong access decisions. Which targeted correction BEST restores the required behavior?
- Apply the intended octal bits and inspect the resulting mode.
- Assume `rwx` applies to everyone regardless of its position.
- Parse the file type and owner/group/other rights separately.
- Treat the initial `-` in the listing as a write bit.
Explanation
Correct Answer
C:Parse the file type and owner/group/other rights separately. This repairs ls -l permission string interpretation and should be checked by seeing that the displayed permissions indicate the intended read, write and execute rights per class.
Incorrect Answers
A:Apply the intended octal bits and inspect the resulting mode. This is a remedy for chmod octal mode 640, not the symptom in this ls -l permission string interpretation case. Misreading a group bit as an owner bit can lead to wrong access decisions.
B:Assume `rwx` applies to everyone regardless of its position. This does not remedy the diagnosed ls -l permission string interpretation failure; the first character identifies object type and the following triples show permissions.
D:Treat the initial `-` in the listing as a write bit. This does not remedy the diagnosed ls -l permission string interpretation failure; the first character identifies object type and the following triples show permissions.
Question 819
A training lab uses an infrastructure-as-a-service instance for a Linux shell exercise. A check then reveals: Assuming the provider patches every guest package can leave the VM outdated. Which targeted correction BEST restores the required behavior?
- Update the chosen guest distribution using its supported maintenance tools.
- Assume the provider's billing console runs apt inside the guest.
- Allocate resources and verify the Linux guest boots before exercises.
- Expose the guest SSH port to everyone as the only patching process.
Explanation
Correct Answer
A:Update the chosen guest distribution using its supported maintenance tools. This repairs Cloud virtual machine responsibilities and should be checked by seeing that the guest shows installed updates and administrative changes after maintenance.
Incorrect Answers
B:Assume the provider's billing console runs apt inside the guest. This does not remedy the diagnosed Cloud virtual machine responsibilities failure; in IaaS the provider manages underlying infrastructure while customers manage their guest operating systems.
C:Allocate resources and verify the Linux guest boots before exercises. This is a remedy for Local virtualization and guest operating systems, not the symptom in this Cloud virtual machine responsibilities case. Assuming the provider patches every guest package can leave the VM outdated.
D:Expose the guest SSH port to everyone as the only patching process. This does not remedy the diagnosed Cloud virtual machine responsibilities failure; in IaaS the provider manages underlying infrastructure while customers manage their guest operating systems.
Question 820
A laboratory compares mechanical hard drives with solid-state storage. A check then reveals: Confusing storage access time with CPU clock rate misdiagnoses delays. Which targeted correction BEST restores the required behavior?
- Assume all HDDs have no moving mechanical parts.
- Match the storage medium to I/O requirements and budget.
- Upgrade only the graphics driver to replace slow spinning disk seeks.
- Verify device and mount point names before accessing removable storage.
Explanation
Correct Answer
B:Match the storage medium to I/O requirements and budget. This repairs SSD versus rotational disk and should be checked by seeing that read and write tests show storage performance consistent with the selected medium.
Incorrect Answers
A:Assume all HDDs have no moving mechanical parts. This does not remedy the diagnosed SSD versus rotational disk failure; sSDs store data without mechanical moving heads while HDDs use rotating media.
C:Upgrade only the graphics driver to replace slow spinning disk seeks. This does not remedy the diagnosed SSD versus rotational disk failure; sSDs store data without mechanical moving heads while HDDs use rotating media.
D:Verify device and mount point names before accessing removable storage. This is a remedy for Removable USB block storage, not the symptom in this SSD versus rotational disk case. Confusing storage access time with CPU clock rate misdiagnoses delays.