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 23

Question 220

A trainee needs the line numbers of configuration lines that contain the text listen. The chosen response is: Use grep -n 'listen' configfile to prefix matching lines with line numbers. Which Linux principle explains why that response works?

  1. grep -i ignores case distinctions during text matching.
  2. tail selects the end of an input stream or file.
  3. A shell pipe connects the standard output of one process to the standard input of another.
  4. grep -n prints a line number with each selected input line.

Explanation

Correct Answer

D:

grep -n prints a line number with each selected input line. That mechanism connects the chosen action (Use grep -n 'listen' configfile to prefix matching lines with line numbers) to the stated need. The expected success evidence is: Matching content appears with the original line number before each line.

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 grep -n prints a line number with each selected input line.

B:

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 grep -n prints a line number with each selected input line.

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 grep -n prints a line number with each selected input line.

Question 221

A learner must create /home/alex/work/week1/reports although intermediate work folders do not yet exist. The chosen response is: Run mkdir -p /home/alex/work/week1/reports with appropriate permissions. Which Linux principle explains why that response works?

  1. mkdir -p creates required parent directories if they do not yet exist.
  2. touch creates an empty file if absent and updates timestamps on existing files.
  3. mv changes a file's directory entry or moves it to another path.
  4. rm -i asks for interactive confirmation before removing an entry.

Explanation

Correct Answer

A:

mkdir -p creates required parent directories if they do not yet exist. That mechanism connects the chosen action (Run mkdir -p /home/alex/work/week1/reports with appropriate permissions) to the stated need. The expected success evidence is: All missing intermediate directories are created along the requested path.

Incorrect Answers

B:

touch creates an empty file if absent and updates timestamps on existing files. That principle applies when a student needs to create a zero-byte marker file or update an existing file's modification timestamp without editing its contents. Here the decisive reason is that mkdir -p creates required parent directories if they do not yet exist.

C:

mv changes a file's directory entry or moves it to another path. That principle applies when a user wants to rename notes-old.txt to notes-new.txt within the same directory. Here the decisive reason is that mkdir -p creates required parent directories if they do not yet exist.

D:

rm -i asks for interactive confirmation before removing an entry. That principle applies when an operator must remove a particular file but wants interactive confirmation before deletion. Here the decisive reason is that mkdir -p creates required parent directories if they do not yet exist.

Question 222

A learner performs this action: Restore a valid target at the referenced path or repoint the link to an existing file. For the situation (a symbolic link stopped working after its target was removed, yet the link itself still appears in an ls listing), which observation would confirm success?

  1. Opening the link accesses the target file while both paths refer to one set of document contents.
  2. The link resolves successfully and the expected target contents can be opened.
  3. The new user entry exists and the expected home directory has been created.
  4. The account's password state is updated and the user can authenticate subject to policy.

Explanation

Correct Answer

B:

The link resolves successfully and the expected target contents can be opened. That specific observation verifies the intended change (Restore a valid target at the referenced path or repoint the link to an existing file.) for this situation. A symlink can remain present even when its target pathname no longer resolves.

Incorrect Answers

A:

Opening the link accesses the target file while both paths refer to one set of document contents. That observation would test whether A user wants a shortcut pathname to a document stored in another directory without copying the document's bytes. It would not establish the required outcome here, which is the link resolves successfully and the expected target contents can be opened.

C:

The new user entry exists and the expected home directory has been created. That observation would test whether A new staff account must have a home directory created when its user is provisioned. It would not establish the required outcome here, which is the link resolves successfully and the expected target contents can be opened.

D:

The account's password state is updated and the user can authenticate subject to policy. That observation would test whether A newly created account needs an initial password set by an authorized administrator. It would not establish the required outcome here, which is the link resolves successfully and the expected target contents can be opened.

Question 223

A learner tries to display a value with echo but accidentally places a command name in a shell redirection expression. Which command, configuration choice, or action best addresses this situation?

  1. Run export PROJECT after assigning the variable before launching the child process.
  2. Use single quotes around the text, as in echo '$HOME'.
  3. Use echo followed by the intended literal or expanded argument, with quoting matched to the desired output.
  4. Add the executable's directory to PATH or invoke the executable using an explicit path.

Explanation

Correct Answer

C:

Use echo followed by the intended literal or expanded argument, with quoting matched to the desired output. It addresses the stated requirement: A learner tries to display a value with echo but accidentally places a command name in a shell redirection expression. The underlying reason is that echo writes its arguments to standard output, which the shell can separately redirect.

Incorrect Answers

A:

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 use echo followed by the intended literal or expanded argument, with quoting matched to the desired output.

B:

Use single quotes around the text, as in echo '$HOME'. That action is relevant when a shell user wants the literal characters $HOME printed rather than an expansion of the current home directory. For the current case, the fitting action is use echo followed by the intended literal or expanded argument, with quoting matched to the desired output.

D:

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 use echo followed by the intended literal or expanded argument, with quoting matched to the desired output.

Question 224

Several students share /tmp and must not be able to delete each other's files merely because the directory is world writable. Which command, configuration choice, or action best addresses this situation?

  1. Set an appropriate umask before files are created and verify the default mode.
  2. Create the account with useradd -m username using appropriate privileges.
  3. Grant the required execute or search permission on the directory while keeping access least privileged.
  4. Ensure the shared temporary directory has the sticky bit with appropriate normal directory permissions.

Explanation

Correct Answer

D:

Ensure the shared temporary directory has the sticky bit with appropriate normal directory permissions. It addresses the stated requirement: Several students share /tmp and must not be able to delete each other's files merely because the directory is world writable. The underlying reason is that the sticky bit on a directory restricts removal and renaming of contained entries to authorized owners or privileged users.

Incorrect Answers

A:

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 ensure the shared temporary directory has the sticky bit with appropriate normal directory permissions.

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 ensure the shared temporary directory has the sticky bit with appropriate normal directory permissions.

C:

Grant the required execute or search permission on the directory while keeping access least privileged. That action is relevant when a user has write permission on files inside a directory but cannot enter the directory to open them by path. For the current case, the fitting action is ensure the shared temporary directory has the sticky bit with appropriate normal directory permissions.

Question 225

A Linux laptop can reach local devices but cannot connect to off-subnet networks and the user suspects its gateway. The chosen response is: Run ip route show and inspect the default route. Which Linux principle explains why that response works?

  1. The kernel routing table determines the next hop for packets not directly reachable.
  2. The ip utility can query network interface addressing from kernel networking state.
  3. DNS client resolver configuration tells software where to direct name-resolution requests.
  4. ss can report current socket state, with -t selecting TCP and -l selecting listeners.

Explanation

Correct Answer

A:

The kernel routing table determines the next hop for packets not directly reachable. That mechanism connects the chosen action (Run ip route show and inspect the default route) to the stated need. The expected success evidence is: The routing table shows a valid default route pointing to the intended gateway when configured.

Incorrect Answers

B:

The ip utility can query network interface addressing from kernel networking state. That principle applies when a user needs to list network interface addresses on a modern Linux host. Here the decisive reason is that the kernel routing table determines the next hop for packets not directly reachable.

C:

DNS client resolver configuration tells software where to direct name-resolution requests. That principle applies when a workstation resolves an internal hostname incorrectly and the operator needs to see local DNS resolver configuration. Here the decisive reason is that the kernel routing table determines the next hop for packets not directly reachable.

D:

ss can report current socket state, with -t selecting TCP and -l selecting listeners. That principle applies when an administrator wants to verify whether a web service has a TCP listening socket on the local machine. Here the decisive reason is that the kernel routing table determines the next hop for packets not directly reachable.

Question 226

A learner performs this action: Run unzip -l package.zip to list archive members. For the situation (a user downloads a ZIP archive and wants to inspect its member names before choosing an extraction directory), which observation would confirm success?

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

Explanation

Correct Answer

B:

The archive listing shows filenames and sizes without extracting the contents. That specific observation verifies the intended change (Run unzip -l package.zip to list archive members.) for this situation. unzip -l lists the members of a ZIP archive without unpacking them.

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 archive listing shows filenames and sizes without extracting the contents.

C:

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 archive listing shows filenames and sizes without extracting the contents.

D:

The resulting .tar contains the source tree and is not gzip- or xz-compressed. That observation would test whether An operator needs to create a tar archive of source files without compression because a later tool requires plain tar. It would not establish the required outcome here, which is the archive listing shows filenames and sizes without extracting the contents.

Question 227

Consider this unresolved requirement: A support agent must package a directory into one compressed tar.gz archive while retaining the original files. What is its most direct operational or security risk?

  1. Accidentally adding compression can make a plain-tar consumer reject the input.
  2. Blind extraction can create unwanted paths or overwrite files.
  3. Archiving without the correct input path can produce an incomplete backup.
  4. Extracting into the wrong location may overwrite existing filenames or scatter content.

Explanation

Correct Answer

C:

Archiving without the correct input path can produce an incomplete backup. tar creates archives and its -z flag invokes gzip compression when used with -c and -f.

Incorrect Answers

A:

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 archiving without the correct input path can produce an incomplete backup.

B:

Blind extraction can create unwanted paths or overwrite files. That risk arises when a user downloads a ZIP archive and wants to inspect its member names before choosing an extraction directory. The current unresolved condition instead creates the risk that archiving without the correct input path can produce an incomplete backup.

D:

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 archiving without the correct input path can produce an incomplete backup.

Question 228

A company distributes modified binaries built from GPL-licensed source and wants to determine its redistribution obligations. Which command, configuration choice, or action best addresses this situation?

  1. Select a suitable permissive license such as the MIT license and retain its required notice.
  2. Choose an appropriate Creative Commons license for the non-software learning materials.
  3. Install a compatible Raspberry Pi OS image intended for the board rather than a generic x86 desktop image.
  4. Provide the corresponding source and preserve applicable GPL license conditions for the distributed derivative.

Explanation

Correct Answer

D:

Provide the corresponding source and preserve applicable GPL license conditions for the distributed derivative. It addresses the stated requirement: A company distributes modified binaries built from GPL-licensed source and wants to determine its redistribution obligations. The underlying reason is that the GPL is a copyleft license that places conditions on redistribution of covered modified programs.

Incorrect Answers

A:

Select a suitable permissive license such as the MIT license and retain its required notice. That action is relevant when a maintainer wants other companies to reuse a small utility in proprietary products with minimal conditions while retaining attribution notices. For the current case, the fitting action is provide the corresponding source and preserve applicable GPL license conditions for the distributed derivative.

B:

Choose an appropriate Creative Commons license for the non-software learning materials. That action is relevant when a group publishes photographs and training slides and wants a standardized content-sharing license rather than a software compiler license. For the current case, the fitting action is provide the corresponding source and preserve applicable GPL license conditions for the distributed derivative.

C:

Install a compatible Raspberry Pi OS image intended for the board rather than a generic x86 desktop image. That action is relevant when a student is selecting an operating system for a Raspberry Pi board and needs a Linux distribution built for its architecture. For the current case, the fitting action is provide the corresponding source and preserve applicable GPL license conditions for the distributed derivative.

Question 229

A Linux laptop can reach local devices but cannot connect to off-subnet networks and the user suspects its gateway. Which command, configuration choice, or action best addresses this situation?

  1. Run ip route show and inspect the default route.
  2. Run ip addr show to inspect interface address assignments.
  3. Run ss -tln and inspect the intended TCP port.
  4. Inspect the system's active resolver settings, including /etc/resolv.conf where applicable.

Explanation

Correct Answer

A:

Run ip route show and inspect the default route. It addresses the stated requirement: A Linux laptop can reach local devices but cannot connect to off-subnet networks and the user suspects its gateway. The underlying reason is that the kernel routing table determines the next hop for packets not directly reachable.

Incorrect Answers

B:

Run ip addr show to inspect interface address assignments. That action is relevant when a user needs to list network interface addresses on a modern Linux host. For the current case, the fitting action is run ip route show and inspect the default route.

C:

Run ss -tln and inspect the intended TCP port. That action is relevant when an administrator wants to verify whether a web service has a TCP listening socket on the local machine. For the current case, the fitting action is run ip route show and inspect the default route.

D:

Inspect the system's active resolver settings, including /etc/resolv.conf where applicable. That action is relevant when a workstation resolves an internal hostname incorrectly and the operator needs to see local DNS resolver configuration. For the current case, the fitting action is run ip route show and inspect the default route.

Question 230

A newly attached peripheral appears physically connected but no usable device interface is exposed by the system. The chosen response is: Install or load a compatible device driver and verify kernel detection. Which Linux principle explains why that response works?

  1. RAM is generally volatile working memory; disk and flash storage retain data without power.
  2. Device drivers allow the kernel to communicate with supported peripherals.
  3. Processors execute machine instructions defined by their supported architecture.
  4. Solid-state storage avoids the mechanical seek latency characteristic of spinning disks.

Explanation

Correct Answer

B:

Device drivers allow the kernel to communicate with supported peripherals. That mechanism connects the chosen action (Install or load a compatible device driver and verify kernel detection) to the stated need. The expected success evidence is: The peripheral becomes visible through the expected Linux device interface.

Incorrect Answers

A:

RAM is generally volatile working memory; disk and flash storage retain data without power. That principle applies when a user expects adding volatile RAM to permanently store documents across power loss. Here the decisive reason is that device drivers allow the kernel to communicate with supported peripherals.

C:

Processors execute machine instructions defined by their supported architecture. That principle applies when a student downloads a binary for x86_64 but the teaching computer runs an ARM CPU. Here the decisive reason is that device drivers allow the kernel to communicate with supported peripherals.

D:

Solid-state storage avoids the mechanical seek latency characteristic of spinning disks. That principle applies when a laptop must reduce application load times and improve random disk access without changing the CPU. Here the decisive reason is that device drivers allow the kernel to communicate with supported peripherals.

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