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 2

Question 10

A file contains unsorted usernames and must be alphabetized. Which action BEST accomplishes the stated Linux task?

  1. Run `grep . file` expecting a sorted result.
  2. Run `sort file` or pipe records into sort.
  3. Use `tail -n 10` as the sorting command.
  4. Use `wc -l file` to alphabetize rows.

Explanation

Correct Answer

B:

Run `sort file` or pipe records into sort. `sort` orders lines while other tools filter or count them. To confirm completion, the resulting output is ordered according to the active locale's sort rules.

Incorrect Answers

A:

Run `grep . file` expecting a sorted result. It does not meet the requirement in this case: A file contains unsorted usernames and must be alphabetized. `sort` orders lines while other tools filter or count them.

C:

Use `tail -n 10` as the sorting command. It would not produce the expected result: The resulting output is ordered according to the active locale's sort rules. The named operation concerns sort text records.

D:

Use `wc -l file` to alphabetize rows. This changes the workflow in the wrong way for sort text records. Counting lines does not put records in lexical order. For this task the appropriate operation is to run `sort file` or pipe records into sort.

Question 11

A training folder named `Project Files` must be used as one pathname argument. Which action BEST accomplishes the stated Linux task?

  1. Use an unquoted variable containing spaces as an automatically safe pathname.
  2. Quote the entire path or escape its spaces, for example `cd "Project Files"`.
  3. Run `cd Project Files` and assume it is always one argument.
  4. Delete the spaces from every file without checking names.

Explanation

Correct Answer

B:

Quote the entire path or escape its spaces, for example `cd "Project Files"`. Unquoted whitespace can split one intended argument into several tokens. To confirm completion, the shell treats the spaced name as one pathname instead of multiple words.

Incorrect Answers

A:

Use an unquoted variable containing spaces as an automatically safe pathname. It would not produce the expected result: The shell treats the spaced name as one pathname instead of multiple words. The named operation concerns Escaping spaces in shell paths.

C:

An unquoted spaced path is split into separate words and may make the command act on the wrong target. This changes the workflow in the wrong way for Escaping spaces in shell paths.

D:

Unquoted whitespace can split one intended argument into several tokens.

Question 12

A desktop needs safe repeatable application updates with dependencies resolved. Which action BEST accomplishes the stated Linux task?

  1. Install source archives without checking any origin or dependency.
  2. Use the distribution's package manager and signed repositories to resolve and update packages.
  3. Use a word processor as the system package database.
  4. Rename a downloaded .tar file into a signed repository.

Explanation

Correct Answer

B:

Use the distribution's package manager and signed repositories to resolve and update packages. Package managers and repositories coordinate software metadata, updates and dependencies. To confirm completion, installed packages and dependency versions are tracked by the repository tools.

Incorrect Answers

A:

Install source archives without checking any origin or dependency. It does not meet the requirement in this case: A desktop needs safe repeatable application updates with dependencies resolved. Package managers and repositories coordinate software metadata, updates and dependencies.

C:

Use a word processor as the system package database. It would not produce the expected result: Installed packages and dependency versions are tracked by the repository tools. The named operation concerns Native distribution package repositories.

D:

This changes the workflow in the wrong way for Native distribution package repositories.

Question 13

A log file is too large and a user wants a single-file gzip-compressed copy. Which action BEST accomplishes the stated Linux task?

  1. Rename `.txt` to `.gz` to compress it.
  2. Use `tar -xf` directly against arbitrary gzip data without an archive.
  3. Assume gzip is the same as ZIP's multi-file archive structure.
  4. Compress with `gzip` and decompress with `gunzip` for the single file.

Explanation

Correct Answer

D:

Compress with `gzip` and decompress with `gunzip` for the single file. gzip compresses a stream or file and does not by itself preserve multiple filenames in one archive. To confirm completion, a gzip file can be decompressed to recover its original bytes.

Incorrect Answers

A:

Rename `.txt` to `.gz` to compress it. It does not meet the requirement in this case: A log file is too large and a user wants a single-file gzip-compressed copy. gzip compresses a stream or file and does not by itself preserve multiple filenames in one archive.

B:

This changes the workflow in the wrong way for gzip compression and gunzip.

C:

Assume gzip is the same as ZIP's multi-file archive structure. It would not produce the expected result: A gzip file can be decompressed to recover its original bytes. The named operation concerns gzip compression and gunzip.

Question 14

A trainee working in `/home/lee/projects` needs to move to `/home/lee`. Which action BEST accomplishes the stated Linux task?

  1. Use `cd .` expecting to move up.
  2. Run `cd ..` to enter the parent directory.
  3. Enter `cd ~` and assume home is always the current parent's path.
  4. Run `cd /` expecting only one level of ascent.

Explanation

Correct Answer

B:

Run `cd .` to enter the parent directory. The `.` component denotes the parent directory in relative paths. To confirm completion, `pwd` after the change displays the parent directory.

Incorrect Answers

A:

Use `cd .` expecting to move up. This changes the workflow in the wrong way for cd parent directory. Using `.` instead would refer to the current directory, not the parent. For this task the appropriate operation is to run `cd .` to enter the parent directory.

C:

Enter `cd ~` and assume home is always the current parent's path. It would not produce the expected result: `pwd` after the change displays the parent directory. The named operation concerns cd parent directory.

D:

Run `cd /` expecting only one level of ascent. It does not meet the requirement in this case: A trainee working in `/home/lee/projects` needs to move to `/home/lee`. The `.` component denotes the parent directory in relative paths.

Question 15

A student wants `echo '$HOME'` to print the dollar sign and name literally. Which action BEST accomplishes the stated Linux task?

  1. Expect double quotes to disable every `$variable` expansion.
  2. Use single quotes for literal `$` text and double quotes when variable expansion is wanted.
  3. Remove all quote characters and expect identical behavior for every argument.
  4. Assume single quotes perform all variable expansions.

Explanation

Correct Answer

B:

Use single quotes for literal `$` text and double quotes when variable expansion is wanted. Bash single quotes inhibit parameter expansion while double quotes generally permit it. To confirm completion, the single-quoted command prints `$USER` or `$HOME` literally.

Incorrect Answers

A:

Expect double quotes to disable every `$variable` expansion. It does not meet the requirement in this case: A student wants `echo '$HOME'` to print the dollar sign and name literally. Bash single quotes inhibit parameter expansion while double quotes generally permit it.

C:

Remove all quote characters and expect identical behavior for every argument. It would not produce the expected result: The single-quoted command prints `$USER` or `$HOME` literally. The named operation concerns Single versus double shell quotes.

D:

This changes the workflow in the wrong way for Single versus double shell quotes.

Question 16

A user edits a small shell script in the terminal using nano. Which action BEST accomplishes the stated Linux task?

  1. Use `rm filename` to write new script text.
  2. Run `cat filename` as an interactive full-screen editor.
  3. Open the file with `nano filename`, edit, save and exit using nano's documented key shortcuts.
  4. Use `less filename` and expect to save typed changes.

Explanation

Correct Answer

C:

Open the file with `nano filename`, edit, save and exit using nano's documented key shortcuts. nano provides terminal-based text editing with on-screen shortcut hints. To confirm completion, the saved file contains the intended text after leaving the editor.

Incorrect Answers

A:

Use `rm filename` to write new script text. It would not produce the expected result: The saved file contains the intended text after leaving the editor. The named operation concerns nano editor save and quit.

B:

Run `cat filename` as an interactive full-screen editor. It does not meet the requirement in this case: A user edits a small shell script in the terminal using nano. nano provides terminal-based text editing with on-screen shortcut hints.

D:

This changes the workflow in the wrong way for nano editor save and quit.

Question 17

A nonprofit needs to edit spreadsheet and presentation documents without purchasing a proprietary office suite. Which action BEST accomplishes the stated Linux task?

  1. Expect Firefox to be an offline presentation editor.
  2. Use LibreOffice Writer, Calc and Impress for the respective office document tasks.
  3. Use GIMP as the primary spreadsheet application.
  4. Use the Linux kernel as the word-processing program.

Explanation

Correct Answer

B:

Use LibreOffice Writer, Calc and Impress for the respective office document tasks. LibreOffice is an open-source productivity suite with document, spreadsheet and presentation tools. To confirm completion, documents open for editing in the relevant office applications.

Incorrect Answers

A:

Expect Firefox to be an offline presentation editor. It does not meet the requirement in this case: A nonprofit needs to edit spreadsheet and presentation documents without purchasing a proprietary office suite. LibreOffice is an open-source productivity suite with document, spreadsheet and presentation tools.

C:

Use GIMP as the primary spreadsheet application. This changes the workflow in the wrong way for LibreOffice document suite. Choosing a graphics editor for spreadsheet formulas cannot satisfy the office workflow. For this task the appropriate operation is to use LibreOffice Writer, Calc and Impress for the respective office document tasks.

D:

Use the Linux kernel as the word-processing program. It would not produce the expected result: Documents open for editing in the relevant office applications. The named operation concerns LibreOffice document suite.

Question 18

A script runs a command and needs to inspect whether it succeeded. Which action BEST accomplishes the stated Linux task?

  1. Treat standard output text as the universal exit status.
  2. Examine `$?` immediately after the command before another command overwrites it.
  3. Assume every nonzero code means success.
  4. Read `$HOME` to obtain the prior exit code.

Explanation

Correct Answer

B:

Examine `$?` immediately after the command before another command overwrites it. `$?` contains the previous foreground command's exit status in Bash. To confirm completion, successful commands commonly return status 0 and errors are represented by nonzero values.

Incorrect Answers

A:

Treat standard output text as the universal exit status. It does not meet the requirement in this case: A script runs a command and needs to inspect whether it succeeded. `$?` contains the previous foreground command's exit status in Bash.

C:

Assume every nonzero code means success. It would not produce the expected result: Successful commands commonly return status 0 and errors are represented by nonzero values. The named operation concerns Exit status from previous command.

D:

This changes the workflow in the wrong way for Exit status from previous command.

Question 19

A beginner needs a simple test of ICMP reachability to a known host. Which action BEST accomplishes the stated Linux task?

  1. Run `ping` against the intended IP or hostname where ICMP is allowed.
  2. Treat ping as a complete proof of HTTP server health.
  3. Assume all firewalls must answer ICMP echo.
  4. Run `host` to measure network round-trip latency.

Explanation

Correct Answer

A:

Run `ping` against the intended IP or hostname where ICMP is allowed. ping tests ICMP reachability; lack of replies alone does not prove every network service is down. To confirm completion, echo replies and round-trip timing appear if supported by the network.

Incorrect Answers

B:

Treat ping as a complete proof of HTTP server health. This changes the workflow in the wrong way for ping reachability testing. Firewalls may block ICMP even when application services work. For this task the appropriate operation is to run `ping` against the intended IP or hostname where ICMP is allowed.

C:

Assume all firewalls must answer ICMP echo. It would not produce the expected result: Echo replies and round-trip timing appear if supported by the network. The named operation concerns ping reachability testing.

D:

Run `host` to measure network round-trip latency. It does not meet the requirement in this case: A beginner needs a simple test of ICMP reachability to a known host. ping tests ICMP reachability; lack of replies alone does not prove every network service is down.

Question 20

A Linux administrator needs to find system-wide text configuration files. Which action BEST accomplishes the stated Linux task?

  1. Inspect `/etc` and the service's documented configuration path.
  2. Search only `/tmp` for persistent system configuration.
  3. Assume `/proc/cpuinfo` is an editable service config.
  4. Store all host configuration in a browser cache.

Explanation

Correct Answer

A:

Inspect `/etc` and the service's documented configuration path. `/etc` commonly stores host-specific system configuration, not arbitrary user documents. To confirm completion, the selected service configuration file is present under the expected directory.

Incorrect Answers

B:

Search only `/tmp` for persistent system configuration. This changes the workflow in the wrong way for /etc configuration files. Editing data in `/dev` does not replace system configuration files. For this task the appropriate operation is to inspect `/etc` and the service's documented configuration path.

C:

Assume `/proc/cpuinfo` is an editable service config. It does not meet the requirement in this case: A Linux administrator needs to find system-wide text configuration files. `/etc` commonly stores host-specific system configuration, not arbitrary user documents.

D:

Store all host configuration in a browser cache. It would not produce the expected result: The selected service configuration file is present under the expected directory. The named operation concerns /etc configuration files.

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