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 84

Question 830

An administrator uses vi to edit a script on a minimal Linux system. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Use `:q!` expecting unsaved edits to be kept.
  2. Assume pressing `i` in a terminal outside vi edits a file.
  3. The edited file persists on disk after vi exits.
  4. Enter insert mode with `i`, return with Esc and use `:wq` to write and quit.
  5. Treat `dd` as vi's save-and-exit command.

Explanation

Correct Answers

C:

The edited file persists on disk after vi exits. This provides direct evidence of the intended vi insert mode and write quit behavior.

D:

Enter insert mode with `i`, return with Esc and use `:wq` to write and quit. This is the actual implementation for vi insert mode and write quit.

Incorrect Answers

A:

Use `:q!` expecting unsaved edits to be kept. This does not contribute a sound implementation or validation step for vi insert mode and write quit. Typing text in command mode can trigger actions rather than insert characters.

B:

Assume pressing `i` in a terminal outside vi edits a file. This does not contribute a sound implementation or validation step for vi insert mode and write quit. Typing text in command mode can trigger actions rather than insert characters.

E:

Treat `dd` as vi's save-and-exit command. This does not contribute a sound implementation or validation step for vi insert mode and write quit. Typing text in command mode can trigger actions rather than insert characters.

Question 831

A student needs the manual entry for the `ls` utility. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Run `mkdir ls` and expect manual text.
  2. Open `top` to search the manual index.
  3. The manual shows a synopsis and option descriptions for the named command.
  4. Use `ls -a` as complete documentation for every option.
  5. Run `man ls` to open the appropriate manual page.

Explanation

Correct Answers

C:

The manual shows a synopsis and option descriptions for the named command. This provides direct evidence of the intended man pages and sections behavior.

E:

Run `man ls` to open the appropriate manual page. This is the actual implementation for man pages and sections.

Incorrect Answers

A:

Run `mkdir ls` and expect manual text. This does not contribute a sound implementation or validation step for man pages and sections. Using a process monitor does not display the command's manual.

B:

Open `top` to search the manual index. This does not contribute a sound implementation or validation step for man pages and sections. Using a process monitor does not display the command's manual.

D:

Use `ls -a` as complete documentation for every option. This does not contribute a sound implementation or validation step for man pages and sections. Using a process monitor does not display the command's manual.

Question 832

A lab chooses openSUSE for a Linux workstation and needs an appropriate software-management approach. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Install unsigned Debian packages as the native SUSE repository format.
  2. The selected system's package-management commands and repositories correspond to its SUSE variant.
  3. Assume openSUSE is a Windows kernel implementation.
  4. Recognize openSUSE and SUSE as related Linux distributions with their supported RPM-based package tooling.
  5. Use Ubuntu LTS release dates as SUSE vendor support commitments.

Explanation

Correct Answers

B:

The selected system's package-management commands and repositories correspond to its SUSE variant. This provides direct evidence of the intended SUSE and openSUSE distributions behavior.

D:

Recognize openSUSE and SUSE as related Linux distributions with their supported RPM-based package tooling. This is the actual implementation for SUSE and openSUSE distributions.

Incorrect Answers

A:

Install unsigned Debian packages as the native SUSE repository format. This does not contribute a sound implementation or validation step for SUSE and openSUSE distributions. Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes.

C:

Assume openSUSE is a Windows kernel implementation. This does not contribute a sound implementation or validation step for SUSE and openSUSE distributions. Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes.

E:

Use Ubuntu LTS release dates as SUSE vendor support commitments. This does not contribute a sound implementation or validation step for SUSE and openSUSE distributions. Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes.

Question 833

A script must assign a path string to `target` without launching a separate command. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Expansion of the variable returns the intended assigned value.
  2. Use `count = 3` as an equivalent Bash assignment.
  3. Use `==` as the Bash scalar assignment operator.
  4. Place the variable name after `export -unset` expecting automatic assignment.
  5. Write Bash scalar assignments without spaces around `=`, such as `count=3`.

Explanation

Correct Answers

A:

Expansion of the variable returns the intended assigned value. This provides direct evidence of the intended Bash variable assignment syntax behavior.

E:

Write Bash scalar assignments without spaces around `=`, such as `count=3`. This is the actual implementation for Bash variable assignment syntax.

Incorrect Answers

B:

Use `count = 3` as an equivalent Bash assignment. This does not contribute a sound implementation or validation step for Bash variable assignment syntax. Incorrect assignment syntax can attempt to run a command named after the variable.

C:

Use `==` as the Bash scalar assignment operator. This does not contribute a sound implementation or validation step for Bash variable assignment syntax. Incorrect assignment syntax can attempt to run a command named after the variable.

D:

Place the variable name after `export -unset` expecting automatic assignment. This does not contribute a sound implementation or validation step for Bash variable assignment syntax. Incorrect assignment syntax can attempt to run a command named after the variable.

Question 834

A hardware diagnostic script reads attributes exposed by kernel subsystems. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Inspect `/sys` for supported sysfs device attributes.
  2. The queried device or subsystem attributes reflect the active kernel state.
  3. Treat `/sys` as the default place for user photos.
  4. Assume `/sys` contains only compressed backups.
  5. Use `/dev/null` as a device attribute browser.

Explanation

Correct Answers

A:

Inspect `/sys` for supported sysfs device attributes. This is the actual implementation for /sys device and kernel interfaces.

B:

The queried device or subsystem attributes reflect the active kernel state. This provides direct evidence of the intended /sys device and kernel interfaces behavior.

Incorrect Answers

C:

Treat `/sys` as the default place for user photos. This does not contribute a sound implementation or validation step for /sys device and kernel interfaces. Mistaking sysfs for a persistent user-data directory can corrupt an investigation.

D:

Assume `/sys` contains only compressed backups. This does not contribute a sound implementation or validation step for /sys device and kernel interfaces. Mistaking sysfs for a persistent user-data directory can corrupt an investigation.

E:

Use `/dev/null` as a device attribute browser. This does not contribute a sound implementation or validation step for /sys device and kernel interfaces. Mistaking sysfs for a persistent user-data directory can corrupt an investigation.

Question 835

A student wants to see all `.txt` files using filename pattern expansion. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Assume a quoted asterisk always matches every filename.
  2. Replace all wildcard patterns with regular expression anchors.
  3. Treat a glob as a command executable rather than an argument.
  4. Use `*.txt` unquoted for matching filenames and quote it when literal text is intended.
  5. The unquoted glob expands to matching filenames while the quoted pattern remains literal.

Explanation

Correct Answers

D:

Use `*.txt` unquoted for matching filenames and quote it when literal text is intended. This is the actual implementation for Globbing versus literal pattern.

E:

The unquoted glob expands to matching filenames while the quoted pattern remains literal. This provides direct evidence of the intended Globbing versus literal pattern behavior.

Incorrect Answers

A:

Assume a quoted asterisk always matches every filename. This does not contribute a sound implementation or validation step for Globbing versus literal pattern. Passing the wrong quoted form can make a command use a literal asterisk as a pathname.

B:

Replace all wildcard patterns with regular expression anchors. This does not contribute a sound implementation or validation step for Globbing versus literal pattern. Passing the wrong quoted form can make a command use a literal asterisk as a pathname.

C:

Treat a glob as a command executable rather than an argument. This does not contribute a sound implementation or validation step for Globbing versus literal pattern. Passing the wrong quoted form can make a command use a literal asterisk as a pathname.

Question 836

A script file must state that Bash should interpret its command lines. Select TWO statements that together form an appropriate implementation and validation plan.

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

Explanation

Correct Answers

B:

Direct script execution selects the indicated interpreter. This provides direct evidence of the intended Shebang shell interpreter behavior.

E:

Put `#!/bin/bash` on the first line of an executable Bash script where that interpreter is available. This is the actual implementation for Shebang shell interpreter.

Incorrect Answers

A:

Put a Bash comment after the last line and expect it to select the interpreter. This does not contribute a sound implementation or validation step for Shebang shell interpreter. Without a suitable interpreter or execution method, a script may not run as intended.

C:

Use `/etc/passwd` as the interpreter path. This does not contribute a sound implementation or validation step for Shebang shell interpreter. Without a suitable interpreter or execution method, a script may not run as intended.

D:

Put `#/bin/bash` without `!` and assume it is a shebang. This does not contribute a sound implementation or validation step for Shebang shell interpreter. Without a suitable interpreter or execution method, a script may not run as intended.

Question 837

A student needs a quick filename search for an indexed configuration file. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Assume locate always searches live disk bytes immediately.
  2. Run `grep filename` without specifying searchable files.
  3. The command returns matching paths from its filename database.
  4. Use `passwd filename` to update the index.
  5. Use `locate filename` after ensuring its filename index is available and updated.

Explanation

Correct Answers

C:

The command returns matching paths from its filename database. This provides direct evidence of the intended locate database lookup behavior.

E:

Use `locate filename` after ensuring its filename index is available and updated. This is the actual implementation for locate database lookup.

Incorrect Answers

A:

Assume locate always searches live disk bytes immediately. This does not contribute a sound implementation or validation step for locate database lookup. Recently created files may be missing until the index is refreshed.

B:

Run `grep filename` without specifying searchable files. This does not contribute a sound implementation or validation step for locate database lookup. Recently created files may be missing until the index is refreshed.

D:

Use `passwd filename` to update the index. This does not contribute a sound implementation or validation step for locate database lookup. Recently created files may be missing until the index is refreshed.

Question 838

A new user repeats commands in a Linux terminal and wants to inspect previous entries. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Run `rm -rf` to display the command history.
  2. The intended earlier command appears in the interactive shell history.
  3. Expect every shell session to persist identical history instantly.
  4. Treat the browser cache as Bash command history.
  5. Use the shell history facility to inspect and reuse prior commands safely.

Explanation

Correct Answers

B:

The intended earlier command appears in the interactive shell history. This provides direct evidence of the intended Terminal access and shell history behavior.

E:

Use the shell history facility to inspect and reuse prior commands safely. This is the actual implementation for Terminal access and shell history.

Incorrect Answers

A:

Run `rm -rf` to display the command history. This does not contribute a sound implementation or validation step for Terminal access and shell history. Mistaking command history for permanent secure audit storage gives incomplete evidence.

C:

Expect every shell session to persist identical history instantly. This does not contribute a sound implementation or validation step for Terminal access and shell history. Mistaking command history for permanent secure audit storage gives incomplete evidence.

D:

Treat the browser cache as Bash command history. This does not contribute a sound implementation or validation step for Terminal access and shell history. Mistaking command history for permanent secure audit storage gives incomplete evidence.

Question 839

A CSV export needs a fast count of newline-delimited records. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Use `sort` alone as a numerical line-count tool.
  2. The output reports the number of newline terminators in the input.
  3. Run `wc -l file` and interpret its newline-count semantics.
  4. Run `cat` and assume it reports line totals.
  5. Use `wc -c` to count lines.

Explanation

Correct Answers

B:

The output reports the number of newline terminators in the input. This provides direct evidence of the intended wc line counting behavior.

C:

Run `wc -l file` and interpret its newline-count semantics. This is the actual implementation for wc line counting.

Incorrect Answers

A:

Use `sort` alone as a numerical line-count tool. This does not contribute a sound implementation or validation step for wc line counting. Using word count can misrepresent a line-oriented record count.

D:

Run `cat` and assume it reports line totals. This does not contribute a sound implementation or validation step for wc line counting. Using word count can misrepresent a line-oriented record count.

E:

Use `wc -c` to count lines. This does not contribute a sound implementation or validation step for wc line counting. Using word count can misrepresent a line-oriented record count.

Question 840

A background command is still running and an operator wants its process identifier. Select THREE statements that together form an appropriate implementation and validation plan.

  1. Run `free` to list all process command lines.
  2. Use `touch` to obtain the PID list.
  3. Expect `ls -a` to show active process state.
  4. Run `ps` with suitable options for the relevant process set.
  5. `ps` provides a snapshot of processes, not continuously updated interactive monitoring.
  6. The listing includes process IDs and command information.

Explanation

Correct Answers

D:

Run `ps` with suitable options for the relevant process set. This is the actual implementation for ps process listing.

E:

`ps` provides a snapshot of processes, not continuously updated interactive monitoring. This is the governing technical reason for the chosen solution.

F:

The listing includes process IDs and command information. This provides direct evidence of the intended ps process listing behavior.

Incorrect Answers

A:

Run `free` to list all process command lines. This does not contribute a sound implementation or validation step for ps process listing. Reading disk capacity cannot identify all running processes.

B:

Use `touch` to obtain the PID list. This does not contribute a sound implementation or validation step for ps process listing. Reading disk capacity cannot identify all running processes.

C:

Expect `ls -a` to show active process state. This does not contribute a sound implementation or validation step for ps process listing. Reading disk capacity cannot identify all running processes.

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