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 13

Question 120

A technician needs file ownership, permissions and modification details instead of filenames alone. Which command, configuration choice, or action best addresses this situation?

  1. Run cd ~ or simply cd in Bash.
  2. Run ls -a in the directory.
  3. Run cd /etc with an absolute path.
  4. Run ls -l for the target directory.

Explanation

Correct Answer

D:

Run ls -l for the target directory. It addresses the stated requirement: A technician needs file ownership, permissions and modification details instead of filenames alone. The underlying reason is that the long listing option -l presents additional file metadata.

Incorrect Answers

A:

Run cd ~ or simply cd in Bash. That action is relevant when a user inside /home/alex/projects needs to return to their own home directory without typing the username. For the current case, the fitting action is run ls -l for the target directory.

B:

Run ls -a in the directory. That action is relevant when a student cannot see a file named .config-note in an ordinary ls listing of a directory. For the current case, the fitting action is run ls -l for the target directory.

C:

Run cd /etc with an absolute path. That action is relevant when a student is in /home/alex/docs and needs to move to /etc regardless of the current location. For the current case, the fitting action is run ls -l for the target directory.

Question 121

Consider this unresolved requirement: A simple Bash script is opened by an interpreter but its first line must explicitly identify Bash as the intended interpreter. What is its most direct operational or security risk?

  1. Depending on the invoking shell can make Bash-specific syntax fail under another interpreter.
  2. Using read without -r can consume backslashes used in legitimate filenames.
  3. Treating an editor name as a shell redirection operation would not open an interactive editor.
  4. Running another command first overwrites the saved last-exit-status variable with that later command's outcome.

Explanation

Correct Answer

A:

Depending on the invoking shell can make Bash-specific syntax fail under another interpreter. A shebang requests the interpreter used when the operating system directly executes a script.

Incorrect Answers

B:

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 depending on the invoking shell can make Bash-specific syntax fail under another interpreter.

C:

Treating an editor name as a shell redirection operation would not open an interactive editor. That risk arises when a learner must make a quick edit to a shell script using a terminal-based editor with on-screen shortcut hints. The current unresolved condition instead creates the risk that depending on the invoking shell can make Bash-specific syntax fail under another interpreter.

D:

Running another command first overwrites the saved last-exit-status variable with that later command's outcome. That risk arises 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. The current unresolved condition instead creates the risk that depending on the invoking shell can make Bash-specific syntax fail under another interpreter.

Question 122

A trainee wants to protect personal accounts when sharing a Linux workstation with other students. Which command, configuration choice, or action best addresses this situation?

  1. Review user access and configure least-privilege sharing for the hosted files.
  2. Use distinct strong passwords and lock or log out of the session when leaving the computer.
  3. Review the browser's privacy settings and restrict third-party tracking cookies where supported.
  4. Create separate virtual machines through a supported hypervisor.

Explanation

Correct Answer

B:

Use distinct strong passwords and lock or log out of the session when leaving the computer. It addresses the stated requirement: A trainee wants to protect personal accounts when sharing a Linux workstation with other students. The underlying reason is that account authentication and session locking restrict who may use a logged-in identity.

Incorrect Answers

A:

Review user access and configure least-privilege sharing for the hosted files. That action is relevant when a team stores a collaborative document in a hosted cloud service and assumes the service eliminates the need to manage its own sharing permissions. For the current case, the fitting action is use distinct strong passwords and lock or log out of the session when leaving the computer.

C:

Review the browser's privacy settings and restrict third-party tracking cookies where supported. That action is relevant when a web user wants to reduce cross-site tracking when researching Linux documentation in a desktop browser. For the current case, the fitting action is use distinct strong passwords and lock or log out of the session when leaving the computer.

D:

Create separate virtual machines through a supported hypervisor. That action is relevant when a systems student needs two isolated guest operating systems on one physical teaching machine for testing and wants to avoid repartitioning for dual boot. For the current case, the fitting action is use distinct strong passwords and lock or log out of the session when leaving the computer.

Question 123

A user needs to identify which accounts currently have active login sessions on a shared Linux system. The chosen response is: Run who to display logged-in session records. Which Linux principle explains why that response works?

  1. id reports numeric and named user and group identity information.
  2. last examines historical login records, subject to local logging retention.
  3. who reports current login information from the system's session accounting.
  4. sudo can authorize and audit individual commands under another account's privileges.

Explanation

Correct Answer

C:

who reports current login information from the system's session accounting. That mechanism connects the chosen action (Run who to display logged-in session records) to the stated need. The expected success evidence is: Active session entries are displayed where login accounting is available.

Incorrect Answers

A:

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 who reports current login information from the system's session accounting.

B:

last examines historical login records, subject to local logging retention. That principle applies when an administrator investigates which accounts recently logged in and from where, using available login history. Here the decisive reason is that who reports current login information from the system's session accounting.

D:

sudo can authorize and audit individual commands under another account's privileges. That principle applies when a standard user needs to run one approved administrative command without switching the entire interactive session to root. Here the decisive reason is that who reports current login information from the system's session accounting.

Question 124

A script operator wants to print the exit status of a command immediately after it runs, before any later command alters the last status. Which command, configuration choice, or action best addresses this situation?

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

Explanation

Correct Answer

D:

Run echo $? immediately after the command whose status must be inspected. It addresses the stated requirement: A script operator wants to print the exit status of a command immediately after it runs, before any later command alters the last status. The underlying reason is that bash sets the special parameter $? to the exit status of the most recently completed foreground pipeline.

Incorrect Answers

A:

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 run echo $? immediately after the command whose status must be inspected.

B:

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 run echo $? immediately after the command whose status must be inspected.

C:

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 run echo $? immediately after the command whose status must be inspected.

Question 125

A new staff account must have a home directory created when its user is provisioned. Which command, configuration choice, or action best addresses this situation?

  1. Create the account with useradd -m username using appropriate privileges.
  2. Create the group using groupadd groupname with suitable privileges.
  3. Place appropriate template files under /etc/skel before creating the new homes.
  4. Use usermod -aG projectgroup username to append membership.

Explanation

Correct Answer

A:

Create the account with useradd -m username using appropriate privileges. It addresses the stated requirement: A new staff account must have a home directory created when its user is provisioned. The underlying reason is that the -m option directs useradd to create a home directory on systems using that tool.

Incorrect Answers

B:

Create the group using groupadd groupname with suitable privileges. That action is relevant when a department needs a new named Unix group before granting shared file access to its members. For the current case, the fitting action is create the account with useradd -m username using appropriate privileges.

C:

Place appropriate template files under /etc/skel before creating the new homes. That action is relevant when a systems administrator wants new home directories to include a standard profile template on account creation. For the current case, the fitting action is create the account with useradd -m username using appropriate privileges.

D:

Use usermod -aG projectgroup username to append membership. That action is relevant when an existing employee must join an additional project group but retain all prior supplementary groups. For the current case, the fitting action is create the account with useradd -m username using appropriate privileges.

Question 126

Consider this unresolved requirement: A student has a text file containing repeated names and wants a lexically sorted unique list. What is its most direct operational or security risk?

  1. Finding text without its position can slow precise configuration edits.
  2. Removing duplicates without considering sorting can leave an inconsistent report order.
  3. Confusing byte count with line count can misstate the number of records.
  4. A case-sensitive search can undercount the relevant failures.

Explanation

Correct Answer

B:

Removing duplicates without considering sorting can leave an inconsistent report order. sort -u sorts input lines and emits one copy of each distinct line under its comparison rules.

Incorrect Answers

A:

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 removing duplicates without considering sorting can leave an inconsistent report order.

C:

Confusing byte count with line count can misstate the number of records. That risk arises when an analyst needs to count the number of newline-delimited records in a local text file. The current unresolved condition instead creates the risk that removing duplicates without considering sorting can leave an inconsistent report order.

D:

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 removing duplicates without considering sorting can leave an inconsistent report order.

Question 127

Consider this unresolved requirement: A student needs the detailed reference page for the standard ls command, including its options. What is its most direct operational or security risk?

  1. Depending only on the command's terse invocation hint may omit important operational guidance.
  2. Inventing command switches without checking supported syntax can cause unexpected actions.
  3. Relying only on a guessed flag can produce incorrect command usage.
  4. An outdated filename index can miss recently created paths.

Explanation

Correct Answer

C:

Relying only on a guessed flag can produce incorrect command usage. This is the most direct consequence of leaving the described condition unresolved. man displays installed manual pages organized by command and topic.

Incorrect Answers

A:

Depending only on the command's terse invocation hint may omit important operational guidance. That risk arises when a learner sees a GNU command with extensive tutorial-style documentation not fully covered in its short help summary. The current unresolved condition instead creates the risk that relying only on a guessed flag can produce incorrect command usage.

B:

Inventing command switches without checking supported syntax can cause unexpected actions. That risk arises when a user needs a quick reminder of a program's supported flags without opening a full manual page. The current unresolved condition instead creates the risk that relying only on a guessed flag can produce incorrect command usage.

D:

An outdated filename index can miss recently created paths. That risk arises when a learner uses locate to find a filename but notices a newly created file is absent from results. The current unresolved condition instead creates the risk that relying only on a guessed flag can produce incorrect command usage.

Question 128

A newly attached peripheral appears physically connected but no usable device interface is exposed by the system. Which command, configuration choice, or action best addresses this situation?

  1. Install or compile a binary supported for the machine's processor architecture.
  2. Replace a spinning hard disk with a compatible SSD for system storage.
  3. Create a suitable partition layout before installing filesystems into the selected partitions.
  4. Install or load a compatible device driver and verify kernel detection.

Explanation

Correct Answer

D:

Install or load a compatible device driver and verify kernel detection. It addresses the stated requirement: A newly attached peripheral appears physically connected but no usable device interface is exposed by the system. The underlying reason is that device drivers allow the kernel to communicate with supported peripherals.

Incorrect Answers

A:

Install or compile a binary supported for the machine's processor architecture. That action is relevant when a student downloads a binary for x86_64 but the teaching computer runs an ARM CPU. For the current case, the fitting action is install or load a compatible device driver and verify kernel detection.

B:

Replace a spinning hard disk with a compatible SSD for system storage. That action is relevant when a laptop must reduce application load times and improve random disk access without changing the CPU. For the current case, the fitting action is install or load a compatible device driver and verify kernel detection.

C:

Create a suitable partition layout before installing filesystems into the selected partitions. That action is relevant when a machine has a single physical storage device and the student needs separate logical regions for system and user data. For the current case, the fitting action is install or load a compatible device driver and verify kernel detection.

Question 129

A learner performs this action: Run ps with options appropriate to the desired process scope. For the situation (a technician needs a snapshot of currently running processes and their process identifiers), which observation would confirm success?

  1. A process list shows PIDs and command names for the selected scope.
  2. The screen refreshes with process usage values as the workload changes.
  3. The output shows system memory figures with readable units.
  4. The process-specific proc directory exposes current status information while the process exists.

Explanation

Correct Answer

A:

A process list shows PIDs and command names for the selected scope. That specific observation verifies the intended change (Run ps with options appropriate to the desired process scope.) for this situation. ps reports process information from the running system.

Incorrect Answers

B:

The screen refreshes with process usage values as the workload changes. That observation would test whether A user wants a continuously updating view of high CPU-consuming processes during an intermittent slowdown. It would not establish the required outcome here, which is a process list shows PIDs and command names for the selected scope.

C:

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 a process list shows PIDs and command names for the selected scope.

D:

The process-specific proc directory exposes current status information while the process exists. That observation would test whether A programmer wants to inspect the kernel's live process information interface for a particular PID. It would not establish the required outcome here, which is a process list shows PIDs and command names for the selected scope.

Question 130

An operator needs to create a tar archive of source files without compression because a later tool requires plain tar. The chosen response is: Run tar -cf source.tar src/ and omit compression flags. Which Linux principle explains why that response works?

  1. By default gzip compresses a single file and replaces the input with its compressed form.
  2. tar can combine filesystem entries into an archive independently of compression tools.
  3. tar -x extracts, -z handles gzip and -f specifies the archive file.
  4. unzip -l lists the members of a ZIP archive without unpacking them.

Explanation

Correct Answer

B:

tar can combine filesystem entries into an archive independently of compression tools. That mechanism connects the chosen action (Run tar -cf source.tar src/ and omit compression flags) to the stated need. The expected success evidence is: The resulting .tar contains the source tree and is not gzip- or xz-compressed.

Incorrect Answers

A:

By default gzip compresses a single file and replaces the input with its compressed form. That principle applies when a student has a single large plain-text log and needs gzip compression, not a multi-file tar bundle. Here the decisive reason is that tar can combine filesystem entries into an archive independently of compression tools.

C:

tar -x extracts, -z handles gzip and -f specifies the archive file. That principle applies when a learner receives a gzip-compressed tar archive and needs to extract it into the intended working directory. Here the decisive reason is that tar can combine filesystem entries into an archive independently of compression tools.

D:

unzip -l lists the members of a ZIP archive without unpacking them. That principle applies when a user downloads a ZIP archive and wants to inspect its member names before choosing an extraction directory. Here the decisive reason is that tar can combine filesystem entries into an archive independently of compression tools.

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