cert
cert-1
cert-2

Pass LPI 010-160 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
010-160 Exam - Verified By Experts
010-160 Premium Bundle
$29.98

010-160 Premium Bundle

$79.99
$109.97
  • Premium File 80 Questions & Answers. Last update: Nov 10, 2026
  • Training Course 78 Video Lectures
  • Study Guide 364 Pages
 
$109.97
$79.99
accept 35 downloads in last 7 days
block-screenshots
Purchase LPI 010-160 Exam Training Products Individually
LPI 010-160 Premium File
Premium File 80 Q&A
$76.99$69.99
LPI 010-160 Video Training Course
Training Course 78 Lectures
$21.99 $19.99
LPI 010-160 PDF Study Guide
Study Guide 364 Pages
$21.99 $19.99
LPI 010-160 Practice Test 5

Question 40

A service starts but another machine cannot reach its expected TCP port. Which action BEST accomplishes the stated Linux task?

  1. Run `ss -ltn` and inspect the expected port and bound address.
  2. Use `ip addr show` expecting all listening TCP port details.
  3. Use `ls -a` to show active TCP connections.
  4. Run `route` to list process socket states.

Explanation

Correct Answer

A:

Run `ss -ltn` and inspect the expected port and bound address. A listening socket is necessary for incoming TCP service connections but firewall routing may also matter. To confirm completion, the service's TCP listening socket appears with the intended local address.

Incorrect Answers

B:

This changes the workflow in the wrong way for ss listening sockets.

C:

Use `ls -a` to show active TCP connections. It would not produce the expected result: The service's TCP listening socket appears with the intended local address. The named operation concerns ss listening sockets.

D:

Run `route` to list process socket states. It does not meet the requirement in this case: A service starts but another machine cannot reach its expected TCP port. A listening socket is necessary for incoming TCP service connections but firewall routing may also matter.

Question 41

A learner knows a desired task but not the command name and wants to search manual descriptions. Which action BEST accomplishes the stated Linux task?

  1. Use `man -k keyword` or the equivalent `apropos keyword` when available.
  2. Assume `cd` automatically searches manual descriptions.
  3. Use `grep /usr/bin` as a manual-page index query.
  4. Run `man -f keyword` as a full description search for unrelated topics.

Explanation

Correct Answer

A:

Use `man -k keyword` or the equivalent `apropos keyword` when available. A keyword manual search finds indexed descriptions, rather than opening a known page directly. To confirm completion, matching manual-page names and short descriptions appear.

Incorrect Answers

B:

Assume `cd` automatically searches manual descriptions. It would not produce the expected result: Matching manual-page names and short descriptions appear. The named operation concerns Keyword manual search.

C:

Use `grep /usr/bin` as a manual-page index query. It does not meet the requirement in this case: A learner knows a desired task but not the command name and wants to search manual descriptions. A keyword manual search finds indexed descriptions, rather than opening a known page directly.

D:

This changes the workflow in the wrong way for Keyword manual search.

Question 42

A script must print the names `red`, `green` and `blue` once each. Which action BEST accomplishes the stated Linux task?

  1. Use an `if` statement as an exact substitute for iteration.
  2. Use `for` without `do` and assume it is complete.
  3. Use a Bash `for item in red green blue; do echo "$item"; done` loop.
  4. Assign a scalar once and expect it to iterate automatically.

Explanation

Correct Answer

C:

Use a Bash `for item in red green blue; do echo "$item"; done` loop. A `for` loop assigns successive list items to the loop variable. To confirm completion, the loop produces one line per supplied item.

Incorrect Answers

A:

Use an `if` statement as an exact substitute for iteration. It would not produce the expected result: The loop produces one line per supplied item. The named operation concerns Loop over fixed items.

B:

This changes the workflow in the wrong way for Loop over fixed items.

D:

Assign a scalar once and expect it to iterate automatically. It does not meet the requirement in this case: A script must print the names `red`, `green` and `blue` once each. A `for` loop assigns successive list items to the loop variable.

Question 43

A script needs to save the output of `date` to a variable for later use. Which action BEST accomplishes the stated Linux task?

  1. Use `echo date` to obtain a live date string.
  2. Use `$?` to capture stdout rather than an exit status.
  3. Set `stamp='date'` expecting the command's current output.
  4. Use command substitution such as `stamp=$(date)` and quote the result when needed.

Explanation

Correct Answer

D:

Use command substitution such as `stamp=$(date)` and quote the result when needed. `$()` substitutes a command's output into the surrounding command context. To confirm completion, the variable contains the command's stdout value.

Incorrect Answers

A:

Use `echo date` to obtain a live date string. It would not produce the expected result: The variable contains the command's stdout value. The named operation concerns Command substitution in scripts.

B:

Use `$?` to capture stdout rather than an exit status. It does not meet the requirement in this case: A script needs to save the output of `date` to a variable for later use. `$()` substitutes a command's output into the surrounding command context.

C:

Set `stamp='date'` expecting the command's current output. This changes the workflow in the wrong way for Command substitution in scripts. Writing a command name as a string does not execute it. For this task the appropriate operation is to use command substitution such as `stamp=$(date)` and quote the result when needed.

Question 44

A report must be writable by its owner, readable by its group, and inaccessible to others. Which action BEST accomplishes the stated Linux task?

  1. Run `chmod 640 report.txt`.
  2. Use `chmod 000` while expecting the owner to keep write access.
  3. Set `chmod 644` and assume others receive no permissions.
  4. Run `chmod 777 report.txt` to keep others from reading.

Explanation

Correct Answer

A:

Run `chmod 640 report.txt`. Octal permissions use bit sums read 4, write 2 and execute 1 within each class. To confirm completion, the resulting permissions are `rw- r-- ---` for owner, group and others.

Incorrect Answers

B:

Use `chmod 000` while expecting the owner to keep write access. It would not produce the expected result: The resulting permissions are `rw- r-- ---` for owner, group and others. The named operation concerns chmod octal mode 640.

C:

Set `chmod 644` and assume others receive no permissions. It does not meet the requirement in this case: A report must be writable by its owner, readable by its group, and inaccessible to others. Octal permissions use bit sums read 4, write 2 and execute 1 within each class.

D:

Run `chmod 777 report.txt` to keep others from reading. This changes the workflow in the wrong way for chmod octal mode 640. Choosing 644 would allow other users to read the report. For this task the appropriate operation is to run `chmod 640 report.txt`.

Question 45

A file has codes such as `cat` and `cot` and the search should match one character in a given set. Which action BEST accomplishes the stated Linux task?

  1. Use `wc -w` to match the regular expression.
  2. Use `grep 'c(ao)t'` as a basic-regex guarantee of either character.
  3. Use a bracket expression such as `grep 'c[ao]t' file`.
  4. Treat `*` as a shell filename wildcard inside every regular expression.

Explanation

Correct Answer

C:

Use a bracket expression such as `grep 'c[ao]t' file`. A regex bracket expression denotes a one-character class rather than an entire word choice. To confirm completion, lines containing either indicated single-character alternative match.

Incorrect Answers

A:

Use `wc -w` to match the regular expression. It would not produce the expected result: Lines containing either indicated single-character alternative match. The named operation concerns Basic regular-expression character classes.

B:

This changes the workflow in the wrong way for Basic regular-expression character classes.

D:

Treat `*` as a shell filename wildcard inside every regular expression. It does not meet the requirement in this case: A file has codes such as `cat` and `cot` and the search should match one character in a given set. A regex bracket expression denotes a one-character class rather than an entire word choice.

Question 46

A desktop restarts when new high-power components are stressed. Which action BEST accomplishes the stated Linux task?

  1. Increase Linux swap as the sole electrical power fix.
  2. Verify that the power supply delivers suitable wattage and connector capacity.
  3. Treat a network router as the system's PSU.
  4. Assume device drivers generate extra physical watts.

Explanation

Correct Answer

B:

Verify that the power supply delivers suitable wattage and connector capacity. The PSU converts and distributes power to system components and must meet load needs. To confirm completion, the machine remains stable under the expected electrical load.

Incorrect Answers

A:

Increase Linux swap as the sole electrical power fix. This changes the workflow in the wrong way for Power supply for components. Underpowered hardware can cause instability despite healthy software. For this task the appropriate operation is to verify that the power supply delivers suitable wattage and connector capacity.

C:

Treat a network router as the system's PSU. It does not meet the requirement in this case: A desktop restarts when new high-power components are stressed. The PSU converts and distributes power to system components and must meet load needs.

D:

Assume device drivers generate extra physical watts. It would not produce the expected result: The machine remains stable under the expected electrical load. The named operation concerns Power supply for components.

Question 47

A colleague sends `backup.tar` and the user needs to recover the contained files. Which action BEST accomplishes the stated Linux task?

  1. Run `tar -xf backup.tar` in a suitable destination directory.
  2. Run `rm backup.tar` expecting its files to appear.
  3. Run `tar -cf backup.tar` as the extraction operation.
  4. Rename the tar file to .zip and use unzip.

Explanation

Correct Answer

A:

Run `tar -xf backup.tar` in a suitable destination directory. `tar -x` extracts an archive and should be used with a supplied file. To confirm completion, the files recorded in the tar archive appear after extraction.

Incorrect Answers

B:

Run `rm backup.tar` expecting its files to appear. It would not produce the expected result: The files recorded in the tar archive appear after extraction. The named operation concerns Extracting a tar archive.

C:

Run `tar -cf backup.tar` as the extraction operation. This changes the workflow in the wrong way for Extracting a tar archive. Running the creation operation on an existing archive does not restore its contents. For this task the appropriate operation is to run `tar -xf backup.tar` in a suitable destination directory.

D:

Rename the tar file to .zip and use unzip. It does not meet the requirement in this case: A colleague sends `backup.tar` and the user needs to recover the contained files. `tar -x` extracts an archive and should be used with a supplied file.

Question 48

A script file must state that Bash should interpret its command lines. Which action BEST accomplishes the stated Linux task?

  1. Put `#/bin/bash` without `!` and assume it is a shebang.
  2. Put `#!/bin/bash` on the first line of an executable Bash script where that interpreter is available.
  3. Use `/etc/passwd` as the interpreter path.
  4. Put a Bash comment after the last line and expect it to select the interpreter.

Explanation

Correct Answer

B:

Put `#!/bin/bash` on the first line of an executable Bash script where that interpreter is available. A shebang identifies the interpreter used when the operating system directly executes a script. To confirm completion, direct script execution selects the indicated interpreter.

Incorrect Answers

A:

This changes the workflow in the wrong way for Shebang shell interpreter.

C:

Use `/etc/passwd` as the interpreter path. It would not produce the expected result: Direct script execution selects the indicated interpreter. The named operation concerns Shebang shell interpreter.

D:

Put a Bash comment after the last line and expect it to select the interpreter. It does not meet the requirement in this case: A script file must state that Bash should interpret its command lines. A shebang identifies the interpreter used when the operating system directly executes a script.

Question 49

A user can list a directory's name but cannot access a known child path. Which action BEST accomplishes the stated Linux task?

  1. Modify `/etc/resolv.conf` to grant directory access.
  2. Give the file a .sh extension to bypass directory search permissions.
  3. Change only the directory read bit and assume traversal always works.
  4. Ensure appropriate execute/search permission on each parent directory for the accessing class.

Explanation

Correct Answer

D:

Ensure appropriate execute/search permission on each parent directory for the accessing class. Directory execute permission controls traversal or search, not execution of the files it contains. To confirm completion, a permitted user can traverse the directory path to reach an authorized file.

Incorrect Answers

A:

Modify `/etc/resolv.conf` to grant directory access. It would not produce the expected result: A permitted user can traverse the directory path to reach an authorized file. The named operation concerns Directory traversal execute permission.

B:

This changes the workflow in the wrong way for Directory traversal execute permission.

C:

Change only the directory read bit and assume traversal always works. It does not meet the requirement in this case: A user can list a directory's name but cannot access a known child path. Directory execute permission controls traversal or search, not execution of the files it contains.

Question 50

An administrator wants to know whether `cd` is a shell builtin. Which action BEST accomplishes the stated Linux task?

  1. Expect `ls -l` to reveal all aliases.
  2. Run `chmod` to identify whether a command is builtin.
  3. Use `cat cd` to classify the shell builtin.
  4. Use `type cd` or `type name` to examine how Bash interprets the command.

Explanation

Correct Answer

D:

Use `type cd` or `type name` to examine how Bash interprets the command. Bash `type` reports command interpretation rather than a file's content type. To confirm completion, the result identifies a builtin, alias, keyword or executable as applicable.

Incorrect Answers

A:

Expect `ls -l` to reveal all aliases. It does not meet the requirement in this case: An administrator wants to know whether `cd` is a shell builtin. Bash `type` reports command interpretation rather than a file's content type.

B:

Run `chmod` to identify whether a command is builtin. It would not produce the expected result: The result identifies a builtin, alias, keyword or executable as applicable. The named operation concerns type and builtin identification.

C:

This changes the workflow in the wrong way for type and builtin identification.

Linux Essentials Certificate Exam, version 1.6 (010-160) Practice Tests