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 37

Question 360

A learner performs this action: Create the account with useradd -m username using appropriate privileges. For the situation (a new staff account must have a home directory created when its user is provisioned), which observation would confirm success?

  1. Newly created home directories receive the intended default profile files.
  2. The user appears in the project group and retains existing supplementary groups after a fresh session where necessary.
  3. The group exists in the account group database with a group identifier.
  4. The new user entry exists and the expected home directory has been created.

Explanation

Correct Answer

D:

The new user entry exists and the expected home directory has been created. That specific observation verifies the intended change (Create the account with useradd -m username using appropriate privileges.) for this situation. The -m option directs useradd to create a home directory on systems using that tool.

Incorrect Answers

A:

Newly created home directories receive the intended default profile files. That observation would test whether A systems administrator wants new home directories to include a standard profile template on account creation. It would not establish the required outcome here, which is the new user entry exists and the expected home directory has been created.

B:

The user appears in the project group and retains existing supplementary groups after a fresh session where necessary. That observation would test whether An existing employee must join an additional project group but retain all prior supplementary groups. It would not establish the required outcome here, which is the new user entry exists and the expected home directory has been created.

C:

The group exists in the account group database with a group identifier. That observation would test whether A department needs a new named Unix group before granting shared file access to its members. It would not establish the required outcome here, which is the new user entry exists and the expected home directory has been created.

Question 361

A learner performs this action: Use a Bash for variable in project1 project2 project3; do ...; done loop. For the situation (a learner needs to print the names of three project directories using a loop rather than copying an echo command three times), which observation would confirm success?

  1. The body runs once per listed directory and prints each name.
  2. Executing the script directly uses the Bash interpreter specified by the shebang.
  3. Each received argument reaches the command as the same separate word.
  4. The printed numeric value reflects that command's exit status, with zero conventionally indicating success.

Explanation

Correct Answer

A:

The body runs once per listed directory and prints each name. That specific observation verifies the intended change (Use a Bash for variable in project1 project2 project3; do ...; done loop.) for this situation. A for loop iterates over a list of words and executes its body with a changing variable.

Incorrect Answers

B:

Executing the script directly uses the Bash interpreter specified by the shebang. That observation would test whether A simple Bash script is opened by an interpreter but its first line must explicitly identify Bash as the intended interpreter. It would not establish the required outcome here, which is the body runs once per listed directory and prints each name.

C:

Each received argument reaches the command as the same separate word. That observation would test whether A wrapper script must forward every original positional argument to another command while preserving spaces within individual arguments. It would not establish the required outcome here, which is the body runs once per listed directory and prints each name.

D:

The printed numeric value reflects that command's exit status, with zero conventionally indicating success. That observation would test whether A script operator wants to print the exit status of a command immediately after it runs, before any later command alters the last status. It would not establish the required outcome here, which is the body runs once per listed directory and prints each name.

Question 362

A student inspects /etc/passwd and mistakes its contents for the location of ordinary password hashes. The chosen response is: Use /etc/passwd to inspect account identity fields and recognize that hashes are normally held separately in /etc/shadow. Which Linux principle explains why that response works?

  1. last examines historical login records, subject to local logging retention.
  2. Modern Linux systems generally keep password hashes in the more restricted /etc/shadow file.
  3. sudo can authorize and audit individual commands under another account's privileges.
  4. who reports current login information from the system's session accounting.

Explanation

Correct Answer

B:

Modern Linux systems generally keep password hashes in the more restricted /etc/shadow file. That mechanism connects the chosen action (Use /etc/passwd to inspect account identity fields and recognize that hashes are normally held separately in /etc/shadow) to the stated need. The expected success evidence is: Account entries show usernames and UID-related fields without exposing normal password hashes.

Incorrect Answers

A:

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 modern Linux systems generally keep password hashes in the more restricted /etc/shadow file.

C:

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 modern Linux systems generally keep password hashes in the more restricted /etc/shadow file.

D:

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 modern Linux systems generally keep password hashes in the more restricted /etc/shadow file.

Question 363

A trainee wrote a correct Bash script file but the shell says permission denied when attempting direct execution. Which command, configuration choice, or action best addresses this situation?

  1. Open the file with nano script.sh when nano is installed.
  2. Print the argument count using echo "$#" inside the script.
  3. Grant the owner execute permission with chmod u+x script.sh when appropriate.
  4. Place #!/bin/bash on the first line when Bash resides at that path.

Explanation

Correct Answer

C:

Grant the owner execute permission with chmod u+x script.sh when appropriate. It addresses the stated requirement: A trainee wrote a correct Bash script file but the shell says permission denied when attempting direct execution. The underlying reason is that filesystem execute permission is required for direct execution of a script path.

Incorrect Answers

A:

Open the file with nano script.sh when nano is installed. That action is relevant when a learner must make a quick edit to a shell script using a terminal-based editor with on-screen shortcut hints. For the current case, the fitting action is grant the owner execute permission with chmod u+x script.sh when appropriate.

B:

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 grant the owner execute permission with chmod u+x script.sh when appropriate.

D:

Place #!/bin/bash on the first line when Bash resides at that path. That action is relevant when a simple Bash script is opened by an interpreter but its first line must explicitly identify Bash as the intended interpreter. For the current case, the fitting action is grant the owner execute permission with chmod u+x script.sh when appropriate.

Question 364

Consider this unresolved requirement: An operator must remove a particular file but wants interactive confirmation before deletion. What is its most direct operational or security risk?

  1. Leaving the expansion unquoted can trigger word splitting and pathname expansion in many command contexts.
  2. Copying only the top-level path without recursive handling does not copy the nested directory contents.
  3. A plain mkdir at the deepest level can fail when its parent directories are absent.
  4. Running an unchecked removal against the wrong path can delete important data.

Explanation

Correct Answer

D:

Running an unchecked removal against the wrong path can delete important data. rm -i asks for interactive confirmation before removing an entry.

Incorrect Answers

A:

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 running an unchecked removal against the wrong path can delete important data.

B:

Copying only the top-level path without recursive handling does not copy the nested directory contents. That risk arises when a student must copy an entire directory named reports into an archive directory while preserving the original directory. The current unresolved condition instead creates the risk that running an unchecked removal against the wrong path can delete important 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 running an unchecked removal against the wrong path can delete important data.

Question 365

Consider this unresolved requirement: A server has no graphical desktop installed, yet a user assumes it cannot be administered at all. What is its most direct operational or security risk?

  1. Adding an unnecessary desktop stack can waste resources and expand installed software exposure.
  2. Confusing a partition with a formatted filesystem can result in an unusable target.
  3. Files present only in volatile memory can disappear when power is lost.
  4. Absent driver support can leave functional hardware inaccessible to applications.

Explanation

Correct Answer

A:

Adding an unnecessary desktop stack can waste resources and expand installed software exposure. Linux systems can operate with a command-line interface without a graphical desktop.

Incorrect Answers

B:

Confusing a partition with a formatted filesystem can result in an unusable target. That risk arises when a machine has a single physical storage device and the student needs separate logical regions for system and user data. The current unresolved condition instead creates the risk that adding an unnecessary desktop stack can waste resources and expand installed software exposure.

C:

Files present only in volatile memory can disappear when power is lost. That risk arises when a user expects adding volatile RAM to permanently store documents across power loss. The current unresolved condition instead creates the risk that adding an unnecessary desktop stack can waste resources and expand installed software exposure.

D:

Absent driver support can leave functional hardware inaccessible to applications. That risk arises when a newly attached peripheral appears physically connected but no usable device interface is exposed by the system. The current unresolved condition instead creates the risk that adding an unnecessary desktop stack can waste resources and expand installed software exposure.

Question 366

Consider this unresolved requirement: A shell helper accepts any number of filenames as separate positional arguments and needs to display how many it received. What is its most direct operational or security risk?

  1. Using unquoted $* may split or expand argument content unexpectedly.
  2. Assuming exactly one argument may leave later file arguments unprocessed.
  3. Leaving the positional parameter unquoted may split one filename into multiple words.
  4. Running another command first overwrites the saved last-exit-status variable with that later command's outcome.

Explanation

Correct Answer

B:

Assuming exactly one argument may leave later file arguments unprocessed. Bash's special parameter $# expands to the number of currently set positional parameters.

Incorrect Answers

A:

Using unquoted $* may split or expand argument content unexpectedly. That risk arises when a wrapper script must forward every original positional argument to another command while preserving spaces within individual arguments. The current unresolved condition instead creates the risk that assuming exactly one argument may leave later file arguments unprocessed.

C:

Leaving the positional parameter unquoted may split one filename into multiple words. That risk arises when a script receives a source filename as its first argument and must reference that value safely when spaces occur. The current unresolved condition instead creates the risk that assuming exactly one argument may leave later file arguments unprocessed.

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 assuming exactly one argument may leave later file arguments unprocessed.

Question 367

Consider this unresolved requirement: A script receives a source filename as its first argument and must reference that value safely when spaces occur. What is its most direct operational or security risk?

  1. Using unquoted $* may split or expand argument content unexpectedly.
  2. Assuming exactly one argument may leave later file arguments unprocessed.
  3. Leaving the positional parameter unquoted may split one filename into multiple words.
  4. Depending on the invoking shell can make Bash-specific syntax fail under another interpreter.

Explanation

Correct Answer

C:

Leaving the positional parameter unquoted may split one filename into multiple words. The shell stores positional arguments as $1, $2 and so on, and double quotes preserve argument boundaries.

Incorrect Answers

A:

Using unquoted $* may split or expand argument content unexpectedly. That risk arises when a wrapper script must forward every original positional argument to another command while preserving spaces within individual arguments. The current unresolved condition instead creates the risk that leaving the positional parameter unquoted may split one filename into multiple words.

B:

Assuming exactly one argument may leave later file arguments unprocessed. That risk arises when a shell helper accepts any number of filenames as separate positional arguments and needs to display how many it received. The current unresolved condition instead creates the risk that leaving the positional parameter unquoted may split one filename into multiple words.

D:

Depending on the invoking shell can make Bash-specific syntax fail under another interpreter. That risk arises when a simple Bash script is opened by an interpreter but its first line must explicitly identify Bash as the intended interpreter. The current unresolved condition instead creates the risk that leaving the positional parameter unquoted may split one filename into multiple words.

Question 368

A learner performs this action: Run rm -i on the intended file and review the prompt. For the situation (an operator must remove a particular file but wants interactive confirmation before deletion), which observation would confirm success?

  1. The output preserves the two-word value rather than interpreting it as separate arguments.
  2. A missing marker file is created, or an existing one receives an updated timestamp without content changes.
  3. The destination contains the copied reports tree and the source remains.
  4. The file is removed only after the operator confirms the prompt.

Explanation

Correct Answer

D:

The file is removed only after the operator confirms the prompt. That specific observation verifies the intended change (Run rm -i on the intended file and review the prompt.) for this situation. rm -i asks for interactive confirmation before removing an entry.

Incorrect Answers

A:

The output preserves the two-word value rather than interpreting it as separate arguments. That observation would test whether A shell variable named PROJECT contains two words and a learner needs to print its value as one shell argument without word splitting. It would not establish the required outcome here, which is the file is removed only after the operator confirms the prompt.

B:

A missing marker file is created, or an existing one receives an updated timestamp without content changes. That observation would test whether A student needs to create a zero-byte marker file or update an existing file's modification timestamp without editing its contents. It would not establish the required outcome here, which is the file is removed only after the operator confirms the prompt.

C:

The destination contains the copied reports tree and the source remains. That observation would test whether A student must copy an entire directory named reports into an archive directory while preserving the original directory. It would not establish the required outcome here, which is the file is removed only after the operator confirms the prompt.

Question 369

A user wants to rename notes-old.txt to notes-new.txt within the same directory. The chosen response is: Run mv notes-old.txt notes-new.txt. Which Linux principle explains why that response works?

  1. mv changes a file's directory entry or moves it to another path.
  2. cp -r recursively copies directory entries.
  3. rm -i asks for interactive confirmation before removing an entry.
  4. touch creates an empty file if absent and updates timestamps on existing files.

Explanation

Correct Answer

A:

mv changes a file's directory entry or moves it to another path. That mechanism connects the chosen action (Run mv notes-old.txt notes-new.txt) to the stated need. The expected success evidence is: The old filename disappears and the same file is accessible at the new name.

Incorrect Answers

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 mv changes a file's directory entry or moves it to another path.

C:

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 mv changes a file's directory entry or moves it to another path.

D:

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 mv changes a file's directory entry or moves it to another path.

Question 370

A learner performs this action: Run cut -d ',' -f 3 data.csv. For the situation (a log uses comma-separated fields and a student needs only its third simple field from each line, with no embedded commas or quoting), which observation would confirm success?

  1. Matching content appears with the original line number before each line.
  2. Each output line contains the third comma-delimited field.
  3. Only the final ten lines appear in the inspection output.
  4. The output is sorted and duplicate identical lines are suppressed.

Explanation

Correct Answer

B:

Each output line contains the third comma-delimited field. That specific observation verifies the intended change (Run cut -d ',' -f 3 data.csv.) for this situation. cut can select numbered fields separated by a specified single-character delimiter.

Incorrect Answers

A:

Matching content appears with the original line number before each line. That observation would test whether A trainee needs the line numbers of configuration lines that contain the text listen. It would not establish the required outcome here, which is each output line contains the third comma-delimited field.

C:

Only the final ten lines appear in the inspection output. That observation would test whether A program writes many lines and a user needs to inspect only the final ten lines of its output log. It would not establish the required outcome here, which is each output line contains the third comma-delimited field.

D:

The output is sorted and duplicate identical lines are suppressed. That observation would test whether A student has a text file containing repeated names and wants a lexically sorted unique list. It would not establish the required outcome here, which is each output line contains the third comma-delimited field.

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