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 18

Question 170

Consider this unresolved requirement: A student needs to create a zero-byte marker file or update an existing file's modification timestamp without editing its contents. What is its most direct operational or security risk?

  1. Running an unchecked removal against the wrong path can delete important data.
  2. Editing the file merely to mark its presence can unintentionally change stored data.
  3. A plain mkdir at the deepest level can fail when its parent directories are absent.
  4. Using cp instead would leave a second file and might not accomplish the desired rename.

Explanation

Correct Answer

B:

Editing the file merely to mark its presence can unintentionally change stored data. touch creates an empty file if absent and updates timestamps on existing files.

Incorrect Answers

A:

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 editing the file merely to mark its presence can unintentionally change stored data.

C:

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 editing the file merely to mark its presence can unintentionally change stored data.

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 editing the file merely to mark its presence can unintentionally change stored data.

Question 171

Consider this unresolved requirement: A shell user wants the literal characters $HOME printed rather than an expansion of the current home directory. What is its most direct operational or security risk?

  1. A variable left only in the shell's local context may be unavailable to child processes.
  2. Misconfigured PATH lookup can prevent expected commands from launching or accidentally select an unintended binary.
  3. Using ordinary double quotes would permit the variable to expand unexpectedly.
  4. Assuming every command resolves through PATH can lead to incorrect debugging of shell builtins.

Explanation

Correct Answer

C:

Using ordinary double quotes would permit the variable to expand unexpectedly. In Bash, single quotes prevent parameter expansion inside the quoted string.

Incorrect Answers

A:

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 using ordinary double quotes would permit the variable to expand unexpectedly.

B:

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 using ordinary double quotes would permit the variable to expand unexpectedly.

D:

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 using ordinary double quotes would permit the variable to expand unexpectedly.

Question 172

A learner performs this action: Refresh the locate database using the system's supported update procedure or use find for a live filesystem search. For the situation (a learner uses locate to find a filename but notices a newly created file is absent from results), which observation would confirm success?

  1. The program prints a concise usage and option summary.
  2. The learner reaches the Info documentation navigation for core utilities.
  3. The manual opens with documented options and a navigable reference for ls.
  4. The new file appears in an updated locate index or is found by a direct live search.

Explanation

Correct Answer

D:

The new file appears in an updated locate index or is found by a direct live search. That specific observation verifies the intended change (Refresh the locate database using the system's supported update procedure or use find for a live filesystem search.) for this situation. locate commonly searches an indexed database rather than walking the live filesystem.

Incorrect Answers

A:

The program prints a concise usage and option summary. That observation would test whether A user needs a quick reminder of a program's supported flags without opening a full manual page. It would not establish the required outcome here, which is the new file appears in an updated locate index or is found by a direct live search.

B:

The learner reaches the Info documentation navigation for core utilities. That observation would test whether A learner sees a GNU command with extensive tutorial-style documentation not fully covered in its short help summary. It would not establish the required outcome here, which is the new file appears in an updated locate index or is found by a direct live search.

C:

The manual opens with documented options and a navigable reference for ls. That observation would test whether A student needs the detailed reference page for the standard ls command, including its options. It would not establish the required outcome here, which is the new file appears in an updated locate index or is found by a direct live search.

Question 173

A systems administrator wants new home directories to include a standard profile template on account creation. The chosen response is: Place appropriate template files under /etc/skel before creating the new homes. Which Linux principle explains why that response works?

  1. The /etc/skel directory supplies default files that account-creation tools can copy into new homes.
  2. The -m option directs useradd to create a home directory on systems using that tool.
  3. passwd updates account password authentication data according to the system's password controls.
  4. groupadd provisions a group entry for use in Linux group-based authorization.

Explanation

Correct Answer

A:

The /etc/skel directory supplies default files that account-creation tools can copy into new homes. That mechanism connects the chosen action (Place appropriate template files under /etc/skel before creating the new homes) to the stated need. The expected success evidence is: Newly created home directories receive the intended default profile files.

Incorrect Answers

B:

The -m option directs useradd to create a home directory on systems using that tool. That principle applies when a new staff account must have a home directory created when its user is provisioned. Here the decisive reason is that the /etc/skel directory supplies default files that account-creation tools can copy into new homes.

C:

passwd updates account password authentication data according to the system's password controls. That principle applies when a newly created account needs an initial password set by an authorized administrator. Here the decisive reason is that the /etc/skel directory supplies default files that account-creation tools can copy into new homes.

D:

groupadd provisions a group entry for use in Linux group-based authorization. That principle applies when a department needs a new named Unix group before granting shared file access to its members. Here the decisive reason is that the /etc/skel directory supplies default files that account-creation tools can copy into new homes.

Question 174

A learner performs this action: Run free -h to display memory statistics. For the situation (a support engineer needs to inspect used and available system memory in human-readable units), which observation would confirm success?

  1. A process list shows PIDs and command names for the selected scope.
  2. The output shows system memory figures with readable units.
  3. The expected service configuration is found in the system configuration tree.
  4. The service or system log messages can be viewed at the documented location.

Explanation

Correct Answer

B:

The output shows system memory figures with readable units. That specific observation verifies the intended change (Run free -h to display memory statistics.) for this situation. free reports memory accounting including used, free and available amounts.

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 output shows system memory figures with readable units.

C:

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 output shows system memory figures with readable units.

D:

The service or system log messages can be viewed at the documented location. That observation would test whether A troubleshooting session requires checking persistent text log files created by system services. It would not establish the required outcome here, which is the output shows system memory figures with readable units.

Question 175

An operator must remove a particular file but wants interactive confirmation before deletion. The chosen response is: Run rm -i on the intended file and review the prompt. Which Linux principle explains why that response works?

  1. touch creates an empty file if absent and updates timestamps on existing files.
  2. cp -r recursively copies directory entries.
  3. rm -i asks for interactive confirmation before removing an entry.
  4. mkdir -p creates required parent directories if they do not yet exist.

Explanation

Correct Answer

C:

rm -i asks for interactive confirmation before removing an entry. That mechanism connects the chosen action (Run rm -i on the intended file and review the prompt) to the stated need. The expected success evidence is: The file is removed only after the operator confirms the prompt.

Incorrect Answers

A:

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 rm -i asks for interactive confirmation before removing an entry.

B:

cp -r recursively copies directory entries. That principle applies when a student must copy an entire directory named reports into an archive directory while preserving the original directory. Here the decisive reason is that rm -i asks for interactive confirmation before removing an entry.

D:

mkdir -p creates required parent directories if they do not yet exist. That principle applies when a learner must create /home/alex/work/week1/reports although intermediate work folders do not yet exist. Here the decisive reason is that rm -i asks for interactive confirmation before removing an entry.

Question 176

A standard user needs to run one approved administrative command without switching the entire interactive session to root. The chosen response is: Run the authorized command through sudo according to local policy. Which Linux principle explains why that response works?

  1. who reports current login information from the system's session accounting.
  2. id reports numeric and named user and group identity information.
  3. Modern Linux systems generally keep password hashes in the more restricted /etc/shadow file.
  4. sudo can authorize and audit individual commands under another account's privileges.

Explanation

Correct Answer

D:

sudo can authorize and audit individual commands under another account's privileges. That mechanism connects the chosen action (Run the authorized command through sudo according to local policy) to the stated need. The expected success evidence is: The permitted command executes with the intended elevated privileges after policy checks.

Incorrect Answers

A:

who reports current login information from the system's session accounting. That principle applies when a user needs to identify which accounts currently have active login sessions on a shared Linux system. Here the decisive reason is that sudo can authorize and audit individual commands under another account's privileges.

B:

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 sudo can authorize and audit individual commands under another account's privileges.

C:

Modern Linux systems generally keep password hashes in the more restricted /etc/shadow file. That principle applies when a student inspects /etc/passwd and mistakes its contents for the location of ordinary password hashes. Here the decisive reason is that sudo can authorize and audit individual commands under another account's privileges.

Question 177

Consider this unresolved requirement: A generated report has the wrong owner after being created by an administrative process. What is its most direct operational or security risk?

  1. Incorrect ownership can block the intended user from modifying or managing the report.
  2. Excessively broad permissions can disclose the notes to unrelated local users.
  3. An overly permissive default mask can create files with broader access than the team intends.
  4. A missing directory execute bit blocks path traversal even when a file itself is readable.

Explanation

Correct Answer

A:

Incorrect ownership can block the intended user from modifying or managing the report. chown changes the owner and optionally the group recorded in a file's metadata.

Incorrect Answers

B:

Excessively broad permissions can disclose the notes to unrelated local users. That risk arises when a file containing team notes should allow the owner to read and write, the file's group to read, and others no access. The current unresolved condition instead creates the risk that incorrect ownership can block the intended user from modifying or managing the report.

C:

An overly permissive default mask can create files with broader access than the team intends. That risk arises when a team wants newly created files to avoid world-write access without changing each file manually afterward. The current unresolved condition instead creates the risk that incorrect ownership can block the intended user from modifying or managing the report.

D:

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 incorrect ownership can block the intended user from modifying or managing the report.

Question 178

A shell helper accepts any number of filenames as separate positional arguments and needs to display how many it received. Which command, configuration choice, or action best addresses this situation?

  1. Use echo "$item" inside the loop body.
  2. Print the argument count using echo "$#" inside the script.
  3. Invoke the downstream command using "$@" after the command name.
  4. Run echo $? immediately after the command whose status must be inspected.

Explanation

Correct Answer

B:

Print the argument count using echo "$#" inside the script. It addresses the stated requirement: A shell helper accepts any number of filenames as separate positional arguments and needs to display how many it received. The underlying reason is that bash's special parameter $# expands to the number of currently set positional parameters.

Incorrect Answers

A:

Use echo "$item" inside the loop body. That action is relevant when a novice writes a loop variable name in a script and needs to print its value instead of the literal variable name. For the current case, the fitting action is print the argument count using echo "$#" inside the script.

C:

Invoke the downstream command using "$@" after the command name. That action is relevant when a wrapper script must forward every original positional argument to another command while preserving spaces within individual arguments. For the current case, the fitting action is print the argument count using echo "$#" inside the script.

D:

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 print the argument count using echo "$#" inside the script.

Question 179

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 command, configuration choice, or action best addresses this situation?

  1. Use apt to install the requested package from configured Debian-style repositories.
  2. Install a compatible Raspberry Pi OS image intended for the board rather than a generic x86 desktop image.
  3. Select a supported Linux guest image for the cloud virtual machine.
  4. Choose an Ubuntu LTS release within its supported maintenance window.

Explanation

Correct Answer

C:

Select a supported Linux guest image for the cloud virtual machine. It addresses the stated requirement: 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 underlying reason is that virtualization allows a guest operating system such as Linux to run on virtualized compute resources.

Incorrect Answers

A:

Use apt to install the requested package from configured Debian-style repositories. That action is relevant when a training workstation uses Ubuntu and an instructor wants a Debian-family package manager rather than an RPM-based command. For the current case, the fitting action is select a supported Linux guest image for the cloud virtual machine.

B:

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 select a supported Linux guest image for the cloud virtual machine.

D:

Choose an Ubuntu LTS release within its supported maintenance window. That action is relevant when a small organization needs a stable Ubuntu desktop release with a predictable period of updates, not a short-lived experimental release. For the current case, the fitting action is select a supported Linux guest image for the cloud virtual machine.

Question 180

Consider this unresolved requirement: An existing employee must join an additional project group but retain all prior supplementary groups. What is its most direct operational or security risk?

  1. Changing existing users' home contents alone will not seed future account creation.
  2. Assigning files to a group that has not been created can fail.
  3. Leaving an account with an unintended authentication state can prevent proper access or cause a security issue.
  4. Using usermod -G without -a can replace the supplementary group list and remove existing memberships.

Explanation

Correct Answer

D:

Using usermod -G without -a can replace the supplementary group list and remove existing memberships. The -aG combination appends a supplementary group without discarding other memberships.

Incorrect Answers

A:

Changing existing users' home contents alone will not seed future account creation. That risk arises when a systems administrator wants new home directories to include a standard profile template on account creation. The current unresolved condition instead creates the risk that using usermod -G without -a can replace the supplementary group list and remove existing memberships.

B:

Assigning files to a group that has not been created can fail. That risk arises when a department needs a new named Unix group before granting shared file access to its members. The current unresolved condition instead creates the risk that using usermod -G without -a can replace the supplementary group list and remove existing memberships.

C:

Leaving an account with an unintended authentication state can prevent proper access or cause a security issue. That risk arises when a newly created account needs an initial password set by an authorized administrator. The current unresolved condition instead creates the risk that using usermod -G without -a can replace the supplementary group list and remove existing memberships.

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