LPI 010-160 Practice Test 18
Question 170
A team evaluates SUSE Linux Enterprise and asks how it relates to openSUSE. Which command or configuration decision is MOST appropriate?
- Assume openSUSE is a Windows kernel implementation.
- Use Ubuntu LTS release dates as SUSE vendor support commitments.
- Recognize openSUSE and SUSE as related Linux distributions with their supported RPM-based package tooling.
- Use RPM-family packages and the distribution's supported DNF or YUM repository manager.
Explanation
Correct Answer
C:SUSE Enterprise and openSUSE are related Linux distributions but have different release and support models.
Incorrect Answers
A:Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes. For the specified situation, this is not equivalent to recognize openSUSE and SUSE as related Linux distributions with their supported RPM-based package tooling.
B:Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes. Use Ubuntu LTS release dates as SUSE vendor support commitments.
D:Use RPM-family packages and the distribution's supported DNF or YUM repository manager. This instead targets Red Hat enterprise package family, not the specific SUSE and openSUSE distributions requirement in the question. The selected system's package-management commands and repositories correspond to its SUSE variant.
Question 171
An authorized user wants to change their own account password. Which command or configuration decision is MOST appropriate?
- Use `passwd username` as an administrator or `passwd` for the current account.
- Echo a plaintext password into `/etc/passwd`.
- Assign a unique suitable UID to each local account under the site's account policy.
- Use `groupadd` as the password-setting command.
Explanation
Correct Answer
A:Use `passwd username` as an administrator or `passwd` for the current account. The same passwd setting account password principle applies in this second case. passwd changes account authentication credentials through supported account-management interfaces. Success would be shown when authentication accepts the updated password according to the system's policies.
Incorrect Answers
B:Creating a user does not necessarily provision a usable password login by itself. For the specified situation, this is not equivalent to use `passwd username` as an administrator or `passwd` for the current account.
C:Assign a unique suitable UID to each local account under the site's account policy. This instead targets UID uniqueness and identity mapping, not the specific passwd setting account password requirement in the question. Authentication accepts the updated password according to the system's policies.
D:For the specified situation, this is not equivalent to use `passwd username` as an administrator or `passwd` for the current account.
Question 172
An administrator audits which supplementary groups a local account belongs to. Which command or configuration decision is MOST appropriate?
- Use `ls -R` as an account group database editor.
- Put group memberships exclusively into `/etc/hosts`.
- Read `/etc/group` and verify memberships with `id` or a supported group-query tool.
- Run `groupadd groupname` with appropriate privileges.
Explanation
Correct Answer
C:Read `/etc/group` and verify memberships with `id` or a supported group-query tool. The same /etc/group account membership records principle applies in this second case. `/etc/group` records local group identities and supplemental membership lists. Success would be shown when a group entry shows its group name, GID and listed supplementary members.
Incorrect Answers
A:Editing a directory listing is not equivalent to managing group databases. For the specified situation, this is not equivalent to read `/etc/group` and verify memberships with `id` or a supported group-query tool.
B:For the specified situation, this is not equivalent to read `/etc/group` and verify memberships with `id` or a supported group-query tool.
D:Run `groupadd groupname` with appropriate privileges. This instead targets groupadd new group, not the specific /etc/group account membership records requirement in the question. A group entry shows its group name, GID and listed supplementary members.
Question 173
A student needs to match either one of two literal characters in the middle of a word. Which command or configuration decision is MOST appropriate?
- Use `grep 'c(ao)t'` as a basic-regex guarantee of either character.
- Treat `*` as a shell filename wildcard inside every regular expression.
- Use `cut -d ':' -f 2 file` to extract the second delimiter-separated field.
- Use a bracket expression such as `grep 'c[ao]t' file`.
Explanation
Correct Answer
D:Use a bracket expression such as `grep 'c[ao]t' file`. The same Basic regular-expression character classes principle applies in this second case. A regex bracket expression denotes a one-character class rather than an entire word choice. Success would be shown when lines containing either indicated single-character alternative match.
Incorrect Answers
A:Literal unquoted brackets or the wrong pattern can change the match set. For the specified situation, this is not equivalent to use a bracket expression such as `grep 'c[ao]t' file`.
B:Literal unquoted brackets or the wrong pattern can change the match set. Treat `*` as a shell filename wildcard inside every regular expression.
C:Use `cut -d ':' -f 2 file` to extract the second delimiter-separated field. This instead targets cut delimited fields, not the specific Basic regular-expression character classes requirement in the question. Lines containing either indicated single-character alternative match.
Question 174
An open-source project needs suitable terms for manuals and separately for program code. Which command or configuration decision is MOST appropriate?
- Treat an unlicensed photograph as automatically public domain.
- Assume CC BY-NC permits every possible commercial reuse.
- Follow the applicable GPL requirements and make covered corresponding source available when distributing as required.
- Use a suitable Creative Commons license for creative content and a software-focused license for code.
Explanation
Correct Answer
D:Success would be shown when documentation and code carry clear licenses appropriate to their materials.
Incorrect Answers
A:Using arbitrary content terms for software can leave code-specific rights ambiguous. For the specified situation, this is not equivalent to use a suitable Creative Commons license for creative content and a software-focused license for code.
B:For the specified situation, this is not equivalent to use a suitable Creative Commons license for creative content and a software-focused license for code.
C:Follow the applicable GPL requirements and make covered corresponding source available when distributing as required. This instead targets GPL copyleft obligations, not the specific Creative Commons and software licensing requirement in the question. Documentation and code carry clear licenses appropriate to their materials.
Question 175
A technician estimates power needs for storage and additional graphics hardware. Which command or configuration decision is MOST appropriate?
- Treat a network router as the system's PSU.
- Increase Linux swap as the sole electrical power fix.
- Verify that the power supply delivers suitable wattage and connector capacity.
- Check whether a compatible kernel driver is available and loaded for the hardware.
Explanation
Correct Answer
C:Verify that the power supply delivers suitable wattage and connector capacity. The same Power supply for components principle applies in this second case. The PSU converts and distributes power to system components and must meet load needs. Success would be shown when the machine remains stable under the expected electrical load.
Incorrect Answers
A:Treat a network router as the system's PSU. For the specified situation, this is not equivalent to verify that the power supply delivers suitable wattage and connector capacity. Underpowered hardware can cause instability despite healthy software.
B:Increase Linux swap as the sole electrical power fix. For the specified situation, this is not equivalent to verify that the power supply delivers suitable wattage and connector capacity. Underpowered hardware can cause instability despite healthy software.
D:Check whether a compatible kernel driver is available and loaded for the hardware. This instead targets Hardware drivers and kernel, not the specific Power supply for components requirement in the question. The machine remains stable under the expected electrical load.
Question 176
An administrator needs to inspect local usernames and login-shell fields. Which command or configuration decision is MOST appropriate?
- Edit `/dev/null` to display local login accounts.
- Use `who` or `w` for current sessions and `last` for login history where recorded.
- Read `/etc/passwd` for account names, UIDs, GIDs, home directories and shells.
- Assume `/etc/passwd` stores everyone's readable cleartext password.
Explanation
Correct Answer
C:Read `/etc/passwd` for account names, UIDs, GIDs, home directories and shells. The same /etc/passwd public account metadata principle applies in this second case. `/etc/passwd` holds public local account information; secret password hashes are normally stored elsewhere. Success would be shown when entries include colon-separated account metadata without storing cleartext user passwords.
Incorrect Answers
A:Edit `/dev/null` to display local login accounts. For the specified situation, this is not equivalent to read `/etc/passwd` for account names, UIDs, GIDs, home directories and shells. Treating the `x` placeholder as the user's plaintext password misreads the file.
B:Use `who` or `w` for current sessions and `last` for login history where recorded. This instead targets who w and last login activity, not the specific /etc/passwd public account metadata requirement in the question. Entries include colon-separated account metadata without storing cleartext user passwords.
D:Assume `/etc/passwd` stores everyone's readable cleartext password. For the specified situation, this is not equivalent to read `/etc/passwd` for account names, UIDs, GIDs, home directories and shells. Treating the `x` placeholder as the user's plaintext password misreads the file.
Question 177
A user wants to remove an empty folder without recursive deletion of other files. Which command or configuration decision is MOST appropriate?
- Run `mkdir -p reports/2026/nov` to create missing parents.
- Use `rmdir old-empty` for the empty directory.
- Assume `rmdir` automatically erases every nested file.
- Use `touch old-empty` to erase the directory.
Explanation
Correct Answer
B:Use `rmdir old-empty` for the empty directory. The same rmdir versus nonempty directories principle applies in this second case. `rmdir` ordinarily removes empty directories, offering a narrower operation than recursive removal. Success would be shown when the empty directory is removed while nonempty directories are rejected.
Incorrect Answers
A:Run `mkdir -p reports/2026/nov` to create missing parents. This instead targets mkdir -p nested directories, not the specific rmdir versus nonempty directories requirement in the question. The empty directory is removed while nonempty directories are rejected.
C:Trying to remove a populated tree this way fails rather than erasing its contents. For the specified situation, this is not equivalent to use `rmdir old-empty` for the empty directory.
D:For the specified situation, this is not equivalent to use `rmdir old-empty` for the empty directory.
Question 178
A library author chooses a license allowing broad reuse with preservation of required notices. Which command or configuration decision is MOST appropriate?
- Follow the specific BSD-style license's notice and attribution conditions when redistributing.
- Assume BSD licenses always require proprietary products to publish all source.
- Remove all original license notices from redistributions.
- Use a suitable Creative Commons license for creative content and a software-focused license for code.
Explanation
Correct Answer
A:Follow the specific BSD-style license's notice and attribution conditions when redistributing. The same Permissive BSD-style licensing principle applies in this second case. Permissive licenses often permit proprietary incorporation while requiring specified notices. Success would be shown when redistribution retains the required copyright and license notices.
Incorrect Answers
B:Assume BSD licenses always require proprietary products to publish all source. For the specified situation, this is not equivalent to follow the specific BSD-style license's notice and attribution conditions when redistributing. Treating permissive licensing as no copyright obligations may omit notices.
C:Remove all original license notices from redistributions. For the specified situation, this is not equivalent to follow the specific BSD-style license's notice and attribution conditions when redistributing. Treating permissive licensing as no copyright obligations may omit notices.
D:Use a suitable Creative Commons license for creative content and a software-focused license for code. This instead targets Creative Commons and software licensing, not the specific Permissive BSD-style licensing requirement in the question. Redistribution retains the required copyright and license notices.
Question 179
A team compares `echo '$USER'` with `echo "$USER"` in Bash. Which command or configuration decision is MOST appropriate?
- Use single quotes for literal `$` text and double quotes when variable expansion is wanted.
- Expect double quotes to disable every `$variable` expansion.
- Assume single quotes perform all variable expansions.
- Run `history` in an interactive Bash shell.
Explanation
Correct Answer
A:Use single quotes for literal `$` text and double quotes when variable expansion is wanted. The same Single versus double shell quotes principle applies in this second case. Bash single quotes inhibit parameter expansion while double quotes generally permit it. Success would be shown when the single-quoted command prints `$USER` or `$HOME` literally.
Incorrect Answers
B:Expect double quotes to disable every `$variable` expansion. For the specified situation, this is not equivalent to use single quotes for literal `$` text and double quotes when variable expansion is wanted. Quoting incorrectly can change text into expanded values.
C:Assume single quotes perform all variable expansions. For the specified situation, this is not equivalent to use single quotes for literal `$` text and double quotes when variable expansion is wanted. Quoting incorrectly can change text into expanded values.
D:Run `history` in an interactive Bash shell. This instead targets Shell history recall, not the specific Single versus double shell quotes requirement in the question. The single-quoted command prints `$USER` or `$HOME` literally.
Question 180
An administrator needs to understand why filesystem ownership uses numeric UIDs. Which command or configuration decision is MOST appropriate?
- Give every standard account UID 0.
- Use `usermod -aG project username` or an approved equivalent to append group membership.
- Assign a unique suitable UID to each local account under the site's account policy.
- Use identical UID values for unrelated tenants without review.
Explanation
Correct Answer
C:Success would be shown when distinct local users map to their intended UID records.
Incorrect Answers
A:Give every standard account UID 0. For the specified situation, this is not equivalent to assign a unique suitable UID to each local account under the site's account policy. Reusing a UID for unrelated users may unintentionally share ownership rights.
B:Use `usermod -aG project username` or an approved equivalent to append group membership. This instead targets Supplementary group membership, not the specific UID uniqueness and identity mapping requirement in the question. Distinct local users map to their intended UID records.
D:Use identical UID values for unrelated tenants without review. For the specified situation, this is not equivalent to assign a unique suitable UID to each local account under the site's account policy. Reusing a UID for unrelated users may unintentionally share ownership rights.