Pass LPI 010-160 Exam in First Attempt Easily
Real LPI 010-160 Exam Questions, Accurate & Verified Answers As Experienced in the Actual Test!

Verified by experts
3 products

You save $69.98

010-160 Premium Bundle

  • Premium File 80 Questions & Answers
  • Last Update: Nov 8, 2026
  • Training Course 78 Lectures
  • Study Guide 364 Pages
$79.99 $149.97

Purchase Individually

  • Premium File

    80 Questions & Answers
    Last Update: Nov 8, 2026

    $76.99
    $69.99
  • Training Course

    78 Lectures

    $43.99
    $39.99
  • Study Guide

    364 Pages

    $43.99
    $39.99

Linux Essentials Certificate Exam, version 1.6 010-160 Practice Test 4

Question 30

Consider this unresolved requirement: A script reads paths from standard input and must preserve literal backslashes instead of treating them as escapes. What is its most direct operational or security risk?

  1. Depending on the invoking shell can make Bash-specific syntax fail under another interpreter.
  2. Using read without -r can consume backslashes used in legitimate filenames.
  3. Using unquoted $* may split or expand argument content unexpectedly.
  4. Manual repetition can introduce inconsistent commands when the list changes.

Explanation

Correct Answer

B:

Using read without -r can consume backslashes used in legitimate filenames. This is the most direct consequence of leaving the described condition unresolved. Bash read -r disables its normal backslash escape processing.

Incorrect Answers

A:

Depending on the invoking shell can make Bash-specific syntax fail under another interpreter. That risk arises when a simple Bash script is opened by an interpreter but its first line must explicitly identify Bash as the intended interpreter. The current unresolved condition instead creates the risk that using read without -r can consume backslashes used in legitimate filenames.

C:

Using unquoted $* may split or expand argument content unexpectedly. That risk arises when a wrapper script must forward every original positional argument to another command while preserving spaces within individual arguments. The current unresolved condition instead creates the risk that using read without -r can consume backslashes used in legitimate filenames.

D:

Manual repetition can introduce inconsistent commands when the list changes. That risk arises when a learner needs to print the names of three project directories using a loop rather than copying an echo command three times. The current unresolved condition instead creates the risk that using read without -r can consume backslashes used in legitimate filenames.

Question 31

A learner performs this action: Run chmod 640 notes.txt after checking ownership and desired sharing. For the situation (a file containing team notes should allow the owner to read and write, the file's group to read, and others no access), which observation would confirm success?

  1. The owner execute bit is present while unrelated execute permissions remain unchanged.
  2. New files omit the unwanted world-write permission.
  3. The mode shows owner rw, group r and other no permissions.
  4. File ownership reports the intended account after the change.

Explanation

Correct Answer

C:

The mode shows owner rw, group r and other no permissions. That specific observation verifies the intended change (Run chmod 640 notes.txt after checking ownership and desired sharing.) for this situation. The octal digits 6, 4 and 0 represent rw-, r-- and --- in user/group/other positions.

Incorrect Answers

A:

The owner execute bit is present while unrelated execute permissions remain unchanged. That observation would test whether A script file belongs to a user who must execute it but should not grant execute permission to everyone. It would not establish the required outcome here, which is the mode shows owner rw, group r and other no permissions.

B:

New files omit the unwanted world-write permission. That observation would test whether A team wants newly created files to avoid world-write access without changing each file manually afterward. It would not establish the required outcome here, which is the mode shows owner rw, group r and other no permissions.

D:

File ownership reports the intended account after the change. That observation would test whether A generated report has the wrong owner after being created by an administrative process. It would not establish the required outcome here, which is the mode shows owner rw, group r and other no permissions.

Question 32

A technician needs a snapshot of currently running processes and their process identifiers. Which command, configuration choice, or action best addresses this situation?

  1. Run dmesg with appropriate privileges and system policy.
  2. Run top and inspect the displayed process CPU usage.
  3. Run free -h to display memory statistics.
  4. Run ps with options appropriate to the desired process scope.

Explanation

Correct Answer

D:

Run ps with options appropriate to the desired process scope. It addresses the stated requirement: A technician needs a snapshot of currently running processes and their process identifiers. The underlying reason is that ps reports process information from the running system.

Incorrect Answers

A:

Run dmesg with appropriate privileges and system policy. That action is relevant when a technician needs recent kernel diagnostic messages after attaching a USB storage device. For the current case, the fitting action is run ps with options appropriate to the desired process scope.

B:

Run top and inspect the displayed process CPU usage. That action is relevant when a user wants a continuously updating view of high CPU-consuming processes during an intermittent slowdown. For the current case, the fitting action is run ps with options appropriate to the desired process scope.

C:

Run free -h to display memory statistics. That action is relevant when a support engineer needs to inspect used and available system memory in human-readable units. For the current case, the fitting action is run ps with options appropriate to the desired process scope.

Question 33

A newly created account needs an initial password set by an authorized administrator. Which command, configuration choice, or action best addresses this situation?

  1. Run passwd username as a permitted administrator and enter the password securely.
  2. Create the account with useradd -m username using appropriate privileges.
  3. Use usermod -aG projectgroup username to append membership.
  4. Place appropriate template files under /etc/skel before creating the new homes.

Explanation

Correct Answer

A:

Run passwd username as a permitted administrator and enter the password securely. It addresses the stated requirement: A newly created account needs an initial password set by an authorized administrator. The underlying reason is that passwd updates account password authentication data according to the system's password controls.

Incorrect Answers

B:

Create the account with useradd -m username using appropriate privileges. That action is relevant when a new staff account must have a home directory created when its user is provisioned. For the current case, the fitting action is run passwd username as a permitted administrator and enter the password securely.

C:

Use usermod -aG projectgroup username to append membership. That action is relevant when an existing employee must join an additional project group but retain all prior supplementary groups. For the current case, the fitting action is run passwd username as a permitted administrator and enter the password securely.

D:

Place appropriate template files under /etc/skel before creating the new homes. That action is relevant when a systems administrator wants new home directories to include a standard profile template on account creation. For the current case, the fitting action is run passwd username as a permitted administrator and enter the password securely.

Question 34

A learner performs this action: Run id for the account whose identity must be checked. For the situation (an operator wants to see the current user's numeric UID and group memberships from the command line), which observation would confirm success?

  1. The output lists recent login history from available system accounting records.
  2. The output shows UID, primary GID and supplementary group information.
  3. Account entries show usernames and UID-related fields without exposing normal password hashes.
  4. The permitted command executes with the intended elevated privileges after policy checks.

Explanation

Correct Answer

B:

The output shows UID, primary GID and supplementary group information. That specific observation verifies the intended change (Run id for the account whose identity must be checked.) for this situation. id reports numeric and named user and group identity information.

Incorrect Answers

A:

The output lists recent login history from available system accounting records. That observation would test whether An administrator investigates which accounts recently logged in and from where, using available login history. It would not establish the required outcome here, which is the output shows UID, primary GID and supplementary group information.

C:

Account entries show usernames and UID-related fields without exposing normal password hashes. That observation would test whether A student inspects /etc/passwd and mistakes its contents for the location of ordinary password hashes. It would not establish the required outcome here, which is the output shows UID, primary GID and supplementary group information.

D:

The permitted command executes with the intended elevated privileges after policy checks. That observation would test whether A standard user needs to run one approved administrative command without switching the entire interactive session to root. It would not establish the required outcome here, which is the output shows UID, primary GID and supplementary group information.

Question 35

A learner performs this action: Run tar -cf source.tar src/ and omit compression flags. For the situation (an operator needs to create a tar archive of source files without compression because a later tool requires plain tar), which observation would confirm success?

  1. The resulting bundle.tar.gz lists the expected directory contents and the source remains available.
  2. The expected directory tree appears after extraction.
  3. The resulting .tar contains the source tree and is not gzip- or xz-compressed.
  4. The original log is replaced by a smaller .gz file and can be decompressed when needed.

Explanation

Correct Answer

C:

The resulting .tar contains the source tree and is not gzip- or xz-compressed. That specific observation verifies the intended change (Run tar -cf source.tar src/ and omit compression flags.) for this situation. tar can combine filesystem entries into an archive independently of compression tools.

Incorrect Answers

A:

The resulting bundle.tar.gz lists the expected directory contents and the source remains available. That observation would test whether A support agent must package a directory into one compressed tar.gz archive while retaining the original files. It would not establish the required outcome here, which is the resulting .tar contains the source tree and is not gzip- or xz-compressed.

B:

The expected directory tree appears after extraction. That observation would test whether A learner receives a gzip-compressed tar archive and needs to extract it into the intended working directory. It would not establish the required outcome here, which is the resulting .tar contains the source tree and is not gzip- or xz-compressed.

D:

The original log is replaced by a smaller .gz file and can be decompressed when needed. That observation would test whether A student has a single large plain-text log and needs gzip compression, not a multi-file tar bundle. It would not establish the required outcome here, which is the resulting .tar contains the source tree and is not gzip- or xz-compressed.

Question 36

Consider this unresolved requirement: An office wants to edit text documents and spreadsheets using an open-source desktop productivity suite. What is its most direct operational or security risk?

  1. Using a text document editor would not expose the intended bitmap editing tools.
  2. Choosing software for unrelated tasks will leave HTTP routing and serving unconfigured.
  3. Running a repository-name install against a local filename may not match the intended direct package operation.
  4. A graphic editor or browser alone will not provide the intended office document editing workflow.

Explanation

Correct Answer

D:

A graphic editor or browser alone will not provide the intended office document editing workflow. LibreOffice includes word processing, spreadsheet and presentation applications.

Incorrect Answers

A:

Using a text document editor would not expose the intended bitmap editing tools. That risk arises when a volunteer must crop and retouch raster photographs with a free and open-source graphical editor. The current unresolved condition instead creates the risk that a graphic editor or browser alone will not provide the intended office document editing workflow.

B:

Choosing software for unrelated tasks will leave HTTP routing and serving unconfigured. That risk arises when a small website must serve static pages and reverse-proxy requests to an application server using an open-source HTTP service. The current unresolved condition instead creates the risk that a graphic editor or browser alone will not provide the intended office document editing workflow.

C:

Running a repository-name install against a local filename may not match the intended direct package operation. That risk arises when a user has an already downloaded Debian package and needs to install that local file without looking up a repository package by name. The current unresolved condition instead creates the risk that a graphic editor or browser alone will not provide the intended office document editing workflow.

Question 37

Consider this unresolved requirement: A learner needs to print the names of three project directories using a loop rather than copying an echo command three times. What is its most direct operational or security risk?

  1. Manual repetition can introduce inconsistent commands when the list changes.
  2. Depending on the invoking shell can make Bash-specific syntax fail under another interpreter.
  3. Using read without -r can consume backslashes used in legitimate filenames.
  4. Quoting the text in single quotes would print the literal characters $item.

Explanation

Correct Answer

A:

Manual repetition can introduce inconsistent commands when the list changes. A for loop iterates over a list of words and executes its body with a changing variable.

Incorrect Answers

B:

Depending on the invoking shell can make Bash-specific syntax fail under another interpreter. That risk arises when a simple Bash script is opened by an interpreter but its first line must explicitly identify Bash as the intended interpreter. The current unresolved condition instead creates the risk that manual repetition can introduce inconsistent commands when the list changes.

C:

Using read without -r can consume backslashes used in legitimate filenames. That risk arises when a script reads paths from standard input and must preserve literal backslashes instead of treating them as escapes. The current unresolved condition instead creates the risk that manual repetition can introduce inconsistent commands when the list changes.

D:

Quoting the text in single quotes would print the literal characters $item. That risk arises when a novice writes a loop variable name in a script and needs to print its value instead of the literal variable name. The current unresolved condition instead creates the risk that manual repetition can introduce inconsistent commands when the list changes.

Question 38

A script author wants to determine whether a command word such as cd resolves to a shell builtin or an external program. Which command, configuration choice, or action best addresses this situation?

  1. Add the executable's directory to PATH or invoke the executable using an explicit path.
  2. Run type cd in the Bash shell.
  3. Run export PROJECT after assigning the variable before launching the child process.
  4. Use echo "$PROJECT" with the variable expansion enclosed in double quotes.

Explanation

Correct Answer

B:

Run type cd in the Bash shell. It addresses the stated requirement: A script author wants to determine whether a command word such as cd resolves to a shell builtin or an external program. The underlying reason is that type reports how the shell interprets a command name, including builtins and external executables.

Incorrect Answers

A:

Add the executable's directory to PATH or invoke the executable using an explicit path. That action is relevant when a user types a command name and the shell cannot find it even though an executable exists in an unlisted directory. For the current case, the fitting action is run type cd in the Bash shell.

C:

Run export PROJECT after assigning the variable before launching the child process. That action is relevant when a locally assigned Bash variable must be inherited by a child process started from the same shell. For the current case, the fitting action is run type cd in the Bash shell.

D:

Use echo "$PROJECT" with the variable expansion enclosed in double quotes. That action is relevant when a shell variable named PROJECT contains two words and a learner needs to print its value as one shell argument without word splitting. For the current case, the fitting action is run type cd in the Bash shell.

Question 39

A script reads paths from standard input and must preserve literal backslashes instead of treating them as escapes. The chosen response is: Use read -r variable in the Bash loop. Which Linux principle explains why that response works?

  1. Bash performs parameter expansion inside double quotes but not inside single quotes.
  2. Within double quotes, "$@" expands to each positional parameter as its own shell word.
  3. Bash read -r disables its normal backslash escape processing.
  4. Bash sets the special parameter $? to the exit status of the most recently completed foreground pipeline.

Explanation

Correct Answer

C:

Bash read -r disables its normal backslash escape processing. That mechanism connects the chosen action (Use read -r variable in the Bash loop) to the stated need. The expected success evidence is: Input backslashes remain literal in the resulting variable.

Incorrect Answers

A:

Bash performs parameter expansion inside double quotes but not inside single quotes. That principle applies when a novice writes a loop variable name in a script and needs to print its value instead of the literal variable name. Here the decisive reason is that bash read -r disables its normal backslash escape processing.

B:

Within double quotes, "$@" expands to each positional parameter as its own shell word. That principle applies when a wrapper script must forward every original positional argument to another command while preserving spaces within individual arguments. Here the decisive reason is that bash read -r disables its normal backslash escape processing.

D:

Bash sets the special parameter $? to the exit status of the most recently completed foreground pipeline. That principle applies when a script operator wants to print the exit status of a command immediately after it runs, before any later command alters the last status. Here the decisive reason is that bash read -r disables its normal backslash escape processing.

Question 40

Consider this unresolved requirement: A maintainer wants other companies to reuse a small utility in proprietary products with minimal conditions while retaining attribution notices. What is its most direct operational or security risk?

  1. Distributing only altered executable code without meeting GPL source obligations may breach the license.
  2. Choosing an unsupported release can leave newly disclosed vulnerabilities unpatched.
  3. Treating physical tenancy as an operating-system restriction can prevent an otherwise valid deployment.
  4. Assuming a permissive license imposes the same reciprocal source-release duty as the GPL can misstate obligations.

Explanation

Correct Answer

D:

Assuming a permissive license imposes the same reciprocal source-release duty as the GPL can misstate obligations. Permissive licenses generally allow reuse under notice requirements without strong copyleft reciprocity.

Incorrect Answers

A:

Distributing only altered executable code without meeting GPL source obligations may breach the license. That risk arises when a company distributes modified binaries built from GPL-licensed source and wants to determine its redistribution obligations. The current unresolved condition instead creates the risk that assuming a permissive license imposes the same reciprocal source-release duty as the GPL can misstate obligations.

B:

Choosing an unsupported release can leave newly disclosed vulnerabilities unpatched. That risk arises when a small organization needs a stable Ubuntu desktop release with a predictable period of updates, not a short-lived experimental release. The current unresolved condition instead creates the risk that assuming a permissive license imposes the same reciprocal source-release duty as the GPL can misstate obligations.

C:

Treating physical tenancy as an operating-system restriction can prevent an otherwise valid deployment. That risk arises when a developer wants to run a Linux service in a cloud virtual machine and assumes the guest cannot be Linux because the physical host is shared. The current unresolved condition instead creates the risk that assuming a permissive license imposes the same reciprocal source-release duty as the GPL can misstate obligations.

Linux Essentials Certificate Exam, version 1.6 (010-160) Practice Tests

Purchase Individually

  • Premium File

    80 Questions & Answers
    Last Update: Nov 8, 2026

    $76.99
    $69.99
  • Training Course

    78 Lectures

    $43.99
    $39.99
  • Study Guide

    364 Pages

    $43.99
    $39.99

SPECIAL OFFER: GET 10% OFF
This is ONE TIME OFFER

You save
10%

Enter Your Email Address to Receive Your 10% Off Discount Code

SPECIAL OFFER: GET 10% OFF

You save
10%

Use Discount Code:

A confirmation link was sent to your e-mail.

Please check your mailbox for a message from support@examlabs.com and follow the directions.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your email address below to get started with our interactive software demo of your free trial.

  • Realistic exam simulation and exam editor with preview functions
  • Whole exam in a single file with several different question types
  • Customizable exam-taking mode & detailed score reports