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 40

Question 390

A learner wants to count only lines containing FAILED in a text file using two simple commands. Which command, configuration choice, or action best addresses this situation?

  1. Run wc -l records.txt.
  2. Pipe the matching lines from grep 'FAILED' file.txt into wc -l.
  3. Use grep -n 'listen' configfile to prefix matching lines with line numbers.
  4. Run sort -u names.txt.

Explanation

Correct Answer

B:

Pipe the matching lines from grep 'FAILED' file.txt into wc -l. It addresses the stated requirement: A learner wants to count only lines containing FAILED in a text file using two simple commands. The underlying reason is that a shell pipe connects the standard output of one process to the standard input of another.

Incorrect Answers

A:

Run wc -l records.txt. That action is relevant when an analyst needs to count the number of newline-delimited records in a local text file. For the current case, the fitting action is pipe the matching lines from grep 'FAILED' file.txt into wc -l.

C:

Use grep -n 'listen' configfile to prefix matching lines with line numbers. That action is relevant when a trainee needs the line numbers of configuration lines that contain the text listen. For the current case, the fitting action is pipe the matching lines from grep 'FAILED' file.txt into wc -l.

D:

Run sort -u names.txt. That action is relevant when a student has a text file containing repeated names and wants a lexically sorted unique list. For the current case, the fitting action is pipe the matching lines from grep 'FAILED' file.txt into wc -l.

Question 391

A learner performs this action: Run top and inspect the displayed process CPU usage. For the situation (a user wants a continuously updating view of high CPU-consuming processes during an intermittent slowdown), which observation would confirm success?

  1. A process list shows PIDs and command names for the selected scope.
  2. The expected service configuration is found in the system configuration tree.
  3. The screen refreshes with process usage values as the workload changes.
  4. The output shows system memory figures with readable units.

Explanation

Correct Answer

C:

The screen refreshes with process usage values as the workload changes. That specific observation verifies the intended change (Run top and inspect the displayed process CPU usage.) for this situation. top provides an interactive periodically refreshed process and resource summary.

Incorrect Answers

A:

A process list shows PIDs and command names for the selected scope. That observation would test whether A technician needs a snapshot of currently running processes and their process identifiers. It would not establish the required outcome here, which is the screen refreshes with process usage values as the workload changes.

B:

The expected service configuration is found in the system configuration tree. That observation would test whether An administrator needs to find the systemwide configuration directory for installed services on a typical Linux distribution. It would not establish the required outcome here, which is the screen refreshes with process usage values as the workload changes.

D:

The output shows system memory figures with readable units. That observation would test whether A support engineer needs to inspect used and available system memory in human-readable units. It would not establish the required outcome here, which is the screen refreshes with process usage values as the workload changes.

Question 392

A learner performs this action: Create a suitable partition layout before installing filesystems into the selected partitions. For the situation (a machine has a single physical storage device and the student needs separate logical regions for system and user data), which observation would confirm success?

  1. The peripheral becomes visible through the expected Linux device interface.
  2. Random file reads and application startup generally improve under the new storage device.
  3. Documents remain available after a full shutdown and reboot.
  4. The device reports separate partitions which can host distinct filesystems.

Explanation

Correct Answer

D:

The device reports separate partitions which can host distinct filesystems. That specific observation verifies the intended change (Create a suitable partition layout before installing filesystems into the selected partitions.) for this situation. Partitions divide a block device into addressable regions; filesystems organize files within such regions.

Incorrect Answers

A:

The peripheral becomes visible through the expected Linux device interface. That observation would test whether A newly attached peripheral appears physically connected but no usable device interface is exposed by the system. It would not establish the required outcome here, which is the device reports separate partitions which can host distinct filesystems.

B:

Random file reads and application startup generally improve under the new storage device. That observation would test whether A laptop must reduce application load times and improve random disk access without changing the CPU. It would not establish the required outcome here, which is the device reports separate partitions which can host distinct filesystems.

C:

Documents remain available after a full shutdown and reboot. That observation would test whether A user expects adding volatile RAM to permanently store documents across power loss. It would not establish the required outcome here, which is the device reports separate partitions which can host distinct filesystems.

Question 393

A learner performs this action: Select a suitable permissive license such as the MIT license and retain its required notice. For the situation (a maintainer wants other companies to reuse a small utility in proprietary products with minimal conditions while retaining attribution notices), which observation would confirm success?

  1. Downstream distributors can include the code subject to the stated copyright and license-notice requirements.
  2. The distributed materials display the chosen CC terms and any required credit and restrictions.
  3. Recipients can obtain the corresponding source under the applicable GPL terms.
  4. A SQL client connects to the server and can create and query a test table.

Explanation

Correct Answer

A:

Downstream distributors can include the code subject to the stated copyright and license-notice requirements. That specific observation verifies the intended change (Select a suitable permissive license such as the MIT license and retain its required notice.) for this situation. Permissive licenses generally allow reuse under notice requirements without strong copyleft reciprocity.

Incorrect Answers

B:

The distributed materials display the chosen CC terms and any required credit and restrictions. That observation would test whether A group publishes photographs and training slides and wants a standardized content-sharing license rather than a software compiler license. It would not establish the required outcome here, which is downstream distributors can include the code subject to the stated copyright and license-notice requirements.

C:

Recipients can obtain the corresponding source under the applicable GPL terms. That observation would test whether A company distributes modified binaries built from GPL-licensed source and wants to determine its redistribution obligations. It would not establish the required outcome here, which is downstream distributors can include the code subject to the stated copyright and license-notice requirements.

D:

A SQL client connects to the server and can create and query a test table. That observation would test whether A team needs a relational SQL database for an open-source web application, not file sync or image editing. It would not establish the required outcome here, which is downstream distributors can include the code subject to the stated copyright and license-notice requirements.

Question 394

A student has a text file containing repeated names and wants a lexically sorted unique list. The chosen response is: Run sort -u names.txt. Which Linux principle explains why that response works?

  1. grep -i ignores case distinctions during text matching.
  2. sort -u sorts input lines and emits one copy of each distinct line under its comparison rules.
  3. A shell pipe connects the standard output of one process to the standard input of another.
  4. tail selects the end of an input stream or file.

Explanation

Correct Answer

B:

sort -u sorts input lines and emits one copy of each distinct line under its comparison rules. That mechanism connects the chosen action (Run sort -u names.txt) to the stated need. The expected success evidence is: The output is sorted and duplicate identical lines are suppressed.

Incorrect Answers

A:

grep -i ignores case distinctions during text matching. That principle applies when a technician must find case-insensitive occurrences of ERROR in a log, even when messages contain error or Error. Here the decisive reason is that sort -u sorts input lines and emits one copy of each distinct line under its comparison rules.

C:

A shell pipe connects the standard output of one process to the standard input of another. That principle applies when a learner wants to count only lines containing FAILED in a text file using two simple commands. Here the decisive reason is that sort -u sorts input lines and emits one copy of each distinct line under its comparison rules.

D:

tail selects the end of an input stream or file. That principle applies when a program writes many lines and a user needs to inspect only the final ten lines of its output log. Here the decisive reason is that sort -u sorts input lines and emits one copy of each distinct line under its comparison rules.

Question 395

A user has write permission on files inside a directory but cannot enter the directory to open them by path. Which command, configuration choice, or action best addresses this situation?

  1. Run chmod 640 notes.txt after checking ownership and desired sharing.
  2. Run chown intendeduser report.txt with authorized privileges.
  3. Grant the required execute or search permission on the directory while keeping access least privileged.
  4. Set an appropriate umask before files are created and verify the default mode.

Explanation

Correct Answer

C:

Grant the required execute or search permission on the directory while keeping access least privileged. It addresses the stated requirement: A user has write permission on files inside a directory but cannot enter the directory to open them by path. The underlying reason is that for directories, execute permission controls traversal and lookup of entries.

Incorrect Answers

A:

Run chmod 640 notes.txt after checking ownership and desired sharing. That action is relevant when a file containing team notes should allow the owner to read and write, the file's group to read, and others no access. For the current case, the fitting action is grant the required execute or search permission on the directory while keeping access least privileged.

B:

Run chown intendeduser report.txt with authorized privileges. That action is relevant when a generated report has the wrong owner after being created by an administrative process. For the current case, the fitting action is grant the required execute or search permission on the directory while keeping access least privileged.

D:

Set an appropriate umask before files are created and verify the default mode. That action is relevant when a team wants newly created files to avoid world-write access without changing each file manually afterward. For the current case, the fitting action is grant the required execute or search permission on the directory while keeping access least privileged.

Question 396

Consider this unresolved requirement: A Linux laptop can reach local devices but cannot connect to off-subnet networks and the user suspects its gateway. What is its most direct operational or security risk?

  1. Testing a nonexistent host address can lead to misleading connectivity failures.
  2. An incorrect resolver can cause hostname lookups to fail even when IP connectivity works.
  3. Using a global DNS change for a one-host experiment can affect unrelated machines.
  4. Without a suitable route, traffic to remote destinations may not leave the local subnet.

Explanation

Correct Answer

D:

Without a suitable route, traffic to remote destinations may not leave the local subnet. The kernel routing table determines the next hop for packets not directly reachable.

Incorrect Answers

A:

Testing a nonexistent host address can lead to misleading connectivity failures. That risk arises when a user needs to list network interface addresses on a modern Linux host. The current unresolved condition instead creates the risk that without a suitable route, traffic to remote destinations may not leave the local subnet.

B:

An incorrect resolver can cause hostname lookups to fail even when IP connectivity works. That risk arises when a workstation resolves an internal hostname incorrectly and the operator needs to see local DNS resolver configuration. The current unresolved condition instead creates the risk that without a suitable route, traffic to remote destinations may not leave the local subnet.

C:

Using a global DNS change for a one-host experiment can affect unrelated machines. That risk arises when a test host must override DNS for one temporary lab hostname without changing authoritative DNS servers. The current unresolved condition instead creates the risk that without a suitable route, traffic to remote destinations may not leave the local subnet.

Question 397

Consider this unresolved requirement: A user downloads a ZIP archive and wants to inspect its member names before choosing an extraction directory. What is its most direct operational or security risk?

  1. Blind extraction can create unwanted paths or overwrite files.
  2. A case-sensitive search can undercount the relevant failures.
  3. Extracting into the wrong location may overwrite existing filenames or scatter content.
  4. Accidentally adding compression can make a plain-tar consumer reject the input.

Explanation

Correct Answer

A:

Blind extraction can create unwanted paths or overwrite files. This is the most direct consequence of leaving the described condition unresolved. unzip -l lists the members of a ZIP archive without unpacking them.

Incorrect Answers

B:

A case-sensitive search can undercount the relevant failures. That risk arises when a technician must find case-insensitive occurrences of ERROR in a log, even when messages contain error or Error. The current unresolved condition instead creates the risk that blind extraction can create unwanted paths or overwrite files.

C:

Extracting into the wrong location may overwrite existing filenames or scatter content. That risk arises when a learner receives a gzip-compressed tar archive and needs to extract it into the intended working directory. The current unresolved condition instead creates the risk that blind extraction can create unwanted paths or overwrite files.

D:

Accidentally adding compression can make a plain-tar consumer reject the input. That risk arises when an operator needs to create a tar archive of source files without compression because a later tool requires plain tar. The current unresolved condition instead creates the risk that blind extraction can create unwanted paths or overwrite files.

Question 398

Consider this unresolved requirement: A wrapper script must forward every original positional argument to another command while preserving spaces within individual arguments. What is its most direct operational or security risk?

  1. Leaving the positional parameter unquoted may split one filename into multiple words.
  2. Using unquoted $* may split or expand argument content unexpectedly.
  3. Assuming exactly one argument may leave later file arguments unprocessed.
  4. Using read without -r can consume backslashes used in legitimate filenames.

Explanation

Correct Answer

B:

Using unquoted $* may split or expand argument content unexpectedly. Within double quotes, "$@" expands to each positional parameter as its own shell word.

Incorrect Answers

A:

Leaving the positional parameter unquoted may split one filename into multiple words. That risk arises when a script receives a source filename as its first argument and must reference that value safely when spaces occur. The current unresolved condition instead creates the risk that using unquoted $* may split or expand argument content unexpectedly.

C:

Assuming exactly one argument may leave later file arguments unprocessed. That risk arises when a shell helper accepts any number of filenames as separate positional arguments and needs to display how many it received. The current unresolved condition instead creates the risk that using unquoted $* may split or expand argument content unexpectedly.

D:

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 using unquoted $* may split or expand argument content unexpectedly.

Question 399

Consider this unresolved requirement: A script author wants to determine whether a command word such as cd resolves to a shell builtin or an external program. What is its most direct operational or security risk?

  1. Assuming every interactive command is safely recorded may reveal secrets typed directly on command lines.
  2. Leaving the expansion unquoted can trigger word splitting and pathname expansion in many command contexts.
  3. Assuming every command resolves through PATH can lead to incorrect debugging of shell builtins.
  4. Misconfigured PATH lookup can prevent expected commands from launching or accidentally select an unintended binary.

Explanation

Correct Answer

C:

Assuming every command resolves through PATH can lead to incorrect debugging of shell builtins. type reports how the shell interprets a command name, including builtins and external executables.

Incorrect Answers

A:

Assuming every interactive command is safely recorded may reveal secrets typed directly on command lines. That risk arises when an operator wants to see recent interactive Bash commands to avoid retyping a long routine command. The current unresolved condition instead creates the risk that assuming every command resolves through PATH can lead to incorrect debugging of shell builtins.

B:

Leaving the expansion unquoted can trigger word splitting and pathname expansion in many command contexts. That risk arises when a shell variable named PROJECT contains two words and a learner needs to print its value as one shell argument without word splitting. The current unresolved condition instead creates the risk that assuming every command resolves through PATH can lead to incorrect debugging of shell builtins.

D:

Misconfigured PATH lookup can prevent expected commands from launching or accidentally select an unintended binary. That risk arises when a user types a command name and the shell cannot find it even though an executable exists in an unlisted directory. The current unresolved condition instead creates the risk that assuming every command resolves through PATH can lead to incorrect debugging of shell builtins.

Question 400

A user needs a quick reminder of a program's supported flags without opening a full manual page. The chosen response is: Invoke the program with --help if it supports that convention. Which Linux principle explains why that response works?

  1. GNU Info stores navigable manuals and can supplement short man or --help output.
  2. locate commonly searches an indexed database rather than walking the live filesystem.
  3. On many Linux distributions, /usr/share/doc contains documentation shipped with packages.
  4. Many GNU programs provide command-specific help via the --help option.

Explanation

Correct Answer

D:

Many GNU programs provide command-specific help via the --help option. That mechanism connects the chosen action (Invoke the program with --help if it supports that convention) to the stated need. The expected success evidence is: The program prints a concise usage and option summary.

Incorrect Answers

A:

GNU Info stores navigable manuals and can supplement short man or --help output. That principle applies when a learner sees a GNU command with extensive tutorial-style documentation not fully covered in its short help summary. Here the decisive reason is that many GNU programs provide command-specific help via the --help option.

B:

locate commonly searches an indexed database rather than walking the live filesystem. That principle applies when a learner uses locate to find a filename but notices a newly created file is absent from results. Here the decisive reason is that many GNU programs provide command-specific help via the --help option.

C:

On many Linux distributions, /usr/share/doc contains documentation shipped with packages. That principle applies when a package has installed sample configuration documents beneath the distribution's standard shared documentation path. Here the decisive reason is that many GNU programs provide command-specific help via the --help option.

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