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 8

Question 70

A learner performs this action: Select a supported Linux guest image for the cloud virtual machine. For the situation (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), which observation would confirm success?

  1. The board boots a supported ARM-compatible operating-system image and reaches the expected login.
  2. The instance boots and identifies a Linux operating system independently of neighboring guest workloads.
  3. Both systems identify a Linux kernel even while bundled applications and default interfaces differ.
  4. apt resolves the package and dependencies using Ubuntu's configured package sources.

Explanation

Correct Answer

B:

The instance boots and identifies a Linux operating system independently of neighboring guest workloads. That specific observation verifies the intended change (Select a supported Linux guest image for the cloud virtual machine.) for this situation. Virtualization allows a guest operating system such as Linux to run on virtualized compute resources.

Incorrect Answers

A:

The board boots a supported ARM-compatible operating-system image and reaches the expected login. That observation would test whether A student is selecting an operating system for a Raspberry Pi board and needs a Linux distribution built for its architecture. It would not establish the required outcome here, which is the instance boots and identifies a Linux operating system independently of neighboring guest workloads.

C:

Both systems identify a Linux kernel even while bundled applications and default interfaces differ. That observation would test whether A technician compares Debian and Ubuntu and mistakenly assumes they must use different operating-system kernels because their desktops look different. It would not establish the required outcome here, which is the instance boots and identifies a Linux operating system independently of neighboring guest workloads.

D:

apt resolves the package and dependencies using Ubuntu's configured package sources. That observation would test whether A training workstation uses Ubuntu and an instructor wants a Debian-family package manager rather than an RPM-based command. It would not establish the required outcome here, which is the instance boots and identifies a Linux operating system independently of neighboring guest workloads.

Question 71

A wrapper script must forward every original positional argument to another command while preserving spaces within individual arguments. Which command, configuration choice, or action best addresses this situation?

  1. Run echo $? immediately after the command whose status must be inspected.
  2. Use "$1" when passing the first positional argument to a file-handling command.
  3. Invoke the downstream command using "$@" after the command name.
  4. Print the argument count using echo "$#" inside the script.

Explanation

Correct Answer

C:

Invoke the downstream command using "$@" after the command name. It addresses the stated requirement: A wrapper script must forward every original positional argument to another command while preserving spaces within individual arguments. The underlying reason is that within double quotes, "$@" expands to each positional parameter as its own shell word.

Incorrect Answers

A:

Run echo $? immediately after the command whose status must be inspected. That action is relevant 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. For the current case, the fitting action is invoke the downstream command using "$@" after the command name.

B:

Use "$1" when passing the first positional argument to a file-handling command. That action is relevant when a script receives a source filename as its first argument and must reference that value safely when spaces occur. For the current case, the fitting action is invoke the downstream command using "$@" after the command name.

D:

Print the argument count using echo "$#" inside the script. That action is relevant when a shell helper accepts any number of filenames as separate positional arguments and needs to display how many it received. For the current case, the fitting action is invoke the downstream command using "$@" after the command name.

Question 72

Consider this unresolved requirement: A log uses comma-separated fields and a student needs only its third simple field from each line, with no embedded commas or quoting. What is its most direct operational or security risk?

  1. Using output redirection into wc -l incorrectly may overwrite a file instead of passing a stream.
  2. Printing the entire log can bury the most recent messages in older output.
  3. Finding text without its position can slow precise configuration edits.
  4. Using whitespace as a delimiter would return incorrect columns for this plain CSV layout.

Explanation

Correct Answer

D:

Using whitespace as a delimiter would return incorrect columns for this plain CSV layout. cut can select numbered fields separated by a specified single-character delimiter.

Incorrect Answers

A:

Using output redirection into wc -l incorrectly may overwrite a file instead of passing a stream. That risk arises when a learner wants to count only lines containing FAILED in a text file using two simple commands. The current unresolved condition instead creates the risk that using whitespace as a delimiter would return incorrect columns for this plain CSV layout.

B:

Printing the entire log can bury the most recent messages in older output. That risk arises when a program writes many lines and a user needs to inspect only the final ten lines of its output log. The current unresolved condition instead creates the risk that using whitespace as a delimiter would return incorrect columns for this plain CSV layout.

C:

Finding text without its position can slow precise configuration edits. That risk arises when a trainee needs the line numbers of configuration lines that contain the text listen. The current unresolved condition instead creates the risk that using whitespace as a delimiter would return incorrect columns for this plain CSV layout.

Question 73

Consider this unresolved requirement: Several students share /tmp and must not be able to delete each other's files merely because the directory is world writable. What is its most direct operational or security risk?

  1. Without the sticky bit, directory write permission could allow users to remove each other's entries.
  2. Adding a user without their intended home directory can complicate profile initialization.
  3. A missing directory execute bit blocks path traversal even when a file itself is readable.
  4. Using usermod -G without -a can replace the supplementary group list and remove existing memberships.

Explanation

Correct Answer

A:

Without the sticky bit, directory write permission could allow users to remove each other's entries. The sticky bit on a directory restricts removal and renaming of contained entries to authorized owners or privileged users.

Incorrect Answers

B:

Adding a user without their intended home directory can complicate profile initialization. That risk arises when a new staff account must have a home directory created when its user is provisioned. The current unresolved condition instead creates the risk that without the sticky bit, directory write permission could allow users to remove each other's entries.

C:

A missing directory execute bit blocks path traversal even when a file itself is readable. That risk arises when a user has write permission on files inside a directory but cannot enter the directory to open them by path. The current unresolved condition instead creates the risk that without the sticky bit, directory write permission could allow users to remove each other's entries.

D:

Using usermod -G without -a can replace the supplementary group list and remove existing memberships. That risk arises when an existing employee must join an additional project group but retain all prior supplementary groups. The current unresolved condition instead creates the risk that without the sticky bit, directory write permission could allow users to remove each other's entries.

Question 74

Consider this unresolved requirement: A student must copy an entire directory named reports into an archive directory while preserving the original directory. What is its most direct operational or security risk?

  1. A plain mkdir at the deepest level can fail when its parent directories are absent.
  2. Copying only the top-level path without recursive handling does not copy the nested directory contents.
  3. Running an unchecked removal against the wrong path can delete important data.
  4. Using cp instead would leave a second file and might not accomplish the desired rename.

Explanation

Correct Answer

B:

Copying only the top-level path without recursive handling does not copy the nested directory contents. This is the most direct consequence of leaving the described condition unresolved. cp -r recursively copies directory entries.

Incorrect Answers

A:

A plain mkdir at the deepest level can fail when its parent directories are absent. That risk arises when a learner must create /home/alex/work/week1/reports although intermediate work folders do not yet exist. The current unresolved condition instead creates the risk that copying only the top-level path without recursive handling does not copy the nested directory contents.

C:

Running an unchecked removal against the wrong path can delete important data. That risk arises when an operator must remove a particular file but wants interactive confirmation before deletion. The current unresolved condition instead creates the risk that copying only the top-level path without recursive handling does not copy the nested directory contents.

D:

Using cp instead would leave a second file and might not accomplish the desired rename. That risk arises when a user wants to rename notes-old.txt to notes-new.txt within the same directory. The current unresolved condition instead creates the risk that copying only the top-level path without recursive handling does not copy the nested directory contents.

Question 75

A support engineer needs to inspect used and available system memory in human-readable units. Which command, configuration choice, or action best addresses this situation?

  1. Inspect the service's configuration under /etc or its documented subdirectory.
  2. Run dmesg with appropriate privileges and system policy.
  3. Run free -h to display memory statistics.
  4. Run top and inspect the displayed process CPU usage.

Explanation

Correct Answer

C:

Run free -h to display memory statistics. It addresses the stated requirement: A support engineer needs to inspect used and available system memory in human-readable units. The underlying reason is that free reports memory accounting including used, free and available amounts.

Incorrect Answers

A:

Inspect the service's configuration under /etc or its documented subdirectory. That action is relevant when an administrator needs to find the systemwide configuration directory for installed services on a typical Linux distribution. For the current case, the fitting action is run free -h to display memory statistics.

B:

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 free -h to display memory statistics.

D:

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 free -h to display memory statistics.

Question 76

A student needs to create a zero-byte marker file or update an existing file's modification timestamp without editing its contents. Which command, configuration choice, or action best addresses this situation?

  1. Run rm -i on the intended file and review the prompt.
  2. Run mv notes-old.txt notes-new.txt.
  3. Run cp -r reports archive/ after checking the destination.
  4. Run touch marker.txt on the target file.

Explanation

Correct Answer

D:

Run touch marker.txt on the target file. It addresses the stated requirement: A student needs to create a zero-byte marker file or update an existing file's modification timestamp without editing its contents. The underlying reason is that touch creates an empty file if absent and updates timestamps on existing files.

Incorrect Answers

A:

Run rm -i on the intended file and review the prompt. That action is relevant when an operator must remove a particular file but wants interactive confirmation before deletion. For the current case, the fitting action is run touch marker.txt on the target file.

B:

Run mv notes-old.txt notes-new.txt. That action is relevant when a user wants to rename notes-old.txt to notes-new.txt within the same directory. For the current case, the fitting action is run touch marker.txt on the target file.

C:

Run cp -r reports archive/ after checking the destination. That action is relevant when a student must copy an entire directory named reports into an archive directory while preserving the original directory. For the current case, the fitting action is run touch marker.txt on the target file.

Question 77

A user types a command name and the shell cannot find it even though an executable exists in an unlisted directory. The chosen response is: Add the executable's directory to PATH or invoke the executable using an explicit path. Which Linux principle explains why that response works?

  1. The shell searches PATH directories in order when resolving executable command names without a slash.
  2. type reports how the shell interprets a command name, including builtins and external executables.
  3. echo writes its arguments to standard output, which the shell can separately redirect.
  4. Double quotes preserve expanded variable content as a single shell word while allowing dollar-variable expansion.

Explanation

Correct Answer

A:

The shell searches PATH directories in order when resolving executable command names without a slash. That mechanism connects the chosen action (Add the executable's directory to PATH or invoke the executable using an explicit path) to the stated need. The expected success evidence is: The shell resolves the command name to the intended executable when PATH is correctly set.

Incorrect Answers

B:

type reports how the shell interprets a command name, including builtins and external executables. That principle applies when a script author wants to determine whether a command word such as cd resolves to a shell builtin or an external program. Here the decisive reason is that the shell searches PATH directories in order when resolving executable command names without a slash.

C:

echo writes its arguments to standard output, which the shell can separately redirect. That principle applies when a learner tries to display a value with echo but accidentally places a command name in a shell redirection expression. Here the decisive reason is that the shell searches PATH directories in order when resolving executable command names without a slash.

D:

Double quotes preserve expanded variable content as a single shell word while allowing dollar-variable expansion. That principle applies when a shell variable named PROJECT contains two words and a learner needs to print its value as one shell argument without word splitting. Here the decisive reason is that the shell searches PATH directories in order when resolving executable command names without a slash.

Question 78

A user wants a shortcut pathname to a document stored in another directory without copying the document's bytes. The chosen response is: Create a symbolic link using ln -s target-path shortcut-name. Which Linux principle explains why that response works?

  1. Symbolic chmod u+x adds execute to the owner permission class.
  2. A symbolic link stores a path reference that is followed to reach the target.
  3. A symlink can remain present even when its target pathname no longer resolves.
  4. id reports numeric and named user and group identity information.

Explanation

Correct Answer

B:

A symbolic link stores a path reference that is followed to reach the target. That mechanism connects the chosen action (Create a symbolic link using ln -s target-path shortcut-name) to the stated need. The expected success evidence is: Opening the link accesses the target file while both paths refer to one set of document contents.

Incorrect Answers

A:

Symbolic chmod u+x adds execute to the owner permission class. That principle applies when a script file belongs to a user who must execute it but should not grant execute permission to everyone. Here the decisive reason is that a symbolic link stores a path reference that is followed to reach the target.

C:

A symlink can remain present even when its target pathname no longer resolves. That principle applies when a symbolic link stopped working after its target was removed, yet the link itself still appears in an ls listing. Here the decisive reason is that a symbolic link stores a path reference that is followed to reach the target.

D:

id reports numeric and named user and group identity information. That principle applies when an operator wants to see the current user's numeric UID and group memberships from the command line. Here the decisive reason is that a symbolic link stores a path reference that is followed to reach the target.

Question 79

A learner performs this action: Run the history builtin to inspect shell command history. For the situation (an operator wants to see recent interactive Bash commands to avoid retyping a long routine command), which observation would confirm success?

  1. The shell resolves the command name to the intended executable when PATH is correctly set.
  2. The result identifies cd as a shell builtin rather than a standalone executable.
  3. The command list shows available entries from the current shell history state.
  4. The child process sees PROJECT in its environment.

Explanation

Correct Answer

C:

The command list shows available entries from the current shell history state. That specific observation verifies the intended change (Run the history builtin to inspect shell command history.) for this situation. Bash maintains a command history mechanism that history can display, subject to configuration.

Incorrect Answers

A:

The shell resolves the command name to the intended executable when PATH is correctly set. That observation would test whether A user types a command name and the shell cannot find it even though an executable exists in an unlisted directory. It would not establish the required outcome here, which is the command list shows available entries from the current shell history state.

B:

The result identifies cd as a shell builtin rather than a standalone executable. That observation would test whether A script author wants to determine whether a command word such as cd resolves to a shell builtin or an external program. It would not establish the required outcome here, which is the command list shows available entries from the current shell history state.

D:

The child process sees PROJECT in its environment. That observation would test whether A locally assigned Bash variable must be inherited by a child process started from the same shell. It would not establish the required outcome here, which is the command list shows available entries from the current shell history state.

Question 80

Consider this unresolved requirement: An operator wants to see recent interactive Bash commands to avoid retyping a long routine command. What is its most direct operational or security risk?

  1. Assuming every command resolves through PATH can lead to incorrect debugging of shell builtins.
  2. A variable left only in the shell's local context may be unavailable to child processes.
  3. Leaving the expansion unquoted can trigger word splitting and pathname expansion in many command contexts.
  4. Assuming every interactive command is safely recorded may reveal secrets typed directly on command lines.

Explanation

Correct Answer

D:

Assuming every interactive command is safely recorded may reveal secrets typed directly on command lines. Bash maintains a command history mechanism that history can display, subject to configuration.

Incorrect Answers

A:

Assuming every command resolves through PATH can lead to incorrect debugging of shell builtins. That risk arises when a script author wants to determine whether a command word such as cd resolves to a shell builtin or an external program. The current unresolved condition instead creates the risk that assuming every interactive command is safely recorded may reveal secrets typed directly on command lines.

B:

A variable left only in the shell's local context may be unavailable to child processes. That risk arises when a locally assigned Bash variable must be inherited by a child process started from the same shell. The current unresolved condition instead creates the risk that assuming every interactive command is safely recorded may reveal secrets typed directly on command lines.

C:

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 interactive command is safely recorded may reveal secrets typed directly on command lines.

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