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 15

Question 140

A user wants to understand privacy implications before installing desktop extensions. Which command or configuration decision is MOST appropriate?

  1. Assume public source code eliminates all software vulnerabilities.
  2. Grant every application full home-directory access by default.
  3. Open a terminal emulator for shell commands and use desktop applications for GUI tasks.
  4. Review application permissions, provenance, update policy and data-sharing settings.

Explanation

Correct Answer

D:

Review application permissions, provenance, update policy and data-sharing settings. The same Privacy-conscious software selection principle applies in this second case. Source availability alone does not guarantee an application is secure or privacy-preserving. Success would be shown when installation consent and data-flow settings match the stated privacy needs.

Incorrect Answers

A:

Installing untrusted code without reviewing access can expose files. For the specified situation, this is not equivalent to review application permissions, provenance, update policy and data-sharing settings.

B:

For the specified situation, this is not equivalent to review application permissions, provenance, update policy and data-sharing settings.

C:

Installation consent and data-flow settings match the stated privacy needs.

Question 141

A class is testing shell commands stored in a `.sh` file. Which command or configuration decision is MOST appropriate?

  1. Use `./script.sh` and assume executable permissions are never checked.
  2. Run `echo script.sh` expecting the script to execute.
  3. Mark the script executable with `chmod +x backup.sh` and use `./backup.sh`.
  4. Invoke `bash script.sh` to have Bash read the script when permitted.

Explanation

Correct Answer

D:

Invoke `bash script.sh` to have Bash read the script when permitted. The same Script invocation via bash principle applies in this second case. Explicit interpreter invocation does not require the script file's executable bit, only readable content. Success would be shown when the Bash process executes the script contents.

Incorrect Answers

A:

Confusing direct `./script.sh` execution with `bash script.sh` changes permission requirements. For the specified situation, this is not equivalent to invoke `bash script.sh` to have Bash read the script when permitted.

B:

For the specified situation, this is not equivalent to invoke `bash script.sh` to have Bash read the script when permitted.

C:

Mark the script executable with `chmod +x backup.sh` and use `./backup.sh`. This instead targets Script execute permission, not the specific Script invocation via bash requirement in the question. The Bash process executes the script contents.

Question 142

A team troubleshoots a group missing access to files inside a directory. Which command or configuration decision is MOST appropriate?

  1. Ensure appropriate execute/search permission on each parent directory for the accessing class.
  2. Change only the directory read bit and assume traversal always works.
  3. Run `chmod u+x script.sh` to add execute permission for the owner.
  4. Give the file a .sh extension to bypass directory search permissions.

Explanation

Correct Answer

A:

Ensure appropriate execute/search permission on each parent directory for the accessing class. The same Directory traversal execute permission principle applies in this second case. Directory execute permission controls traversal or search, not execution of the files it contains. Success would be shown when a permitted user can traverse the directory path to reach an authorized file.

Incorrect Answers

B:

File read permission alone cannot bypass a nontraversable parent directory. Change only the directory read bit and assume traversal always works.

C:

A permitted user can traverse the directory path to reach an authorized file.

D:

File read permission alone cannot bypass a nontraversable parent directory. For the specified situation, this is not equivalent to ensure appropriate execute/search permission on each parent directory for the accessing class.

Question 143

A learner opens vi and needs to insert text then save and exit. Which command or configuration decision is MOST appropriate?

  1. Assume pressing `i` in a terminal outside vi edits a file.
  2. Use `:q!` expecting unsaved edits to be kept.
  3. Enter insert mode with `i`, return with Esc and use `:wq` to write and quit.
  4. Invoke `bash script.sh` to have Bash read the script when permitted.

Explanation

Correct Answer

C:

The same vi insert mode and write quit principle applies in this second case. vi separates command mode and insert mode, so editing and saving require mode-aware commands.

Incorrect Answers

A:

Typing text in command mode can trigger actions rather than insert characters. For the specified situation, this is not equivalent to enter insert mode with `i`, return with Esc and use `:wq` to write and quit.

B:

For the specified situation, this is not equivalent to enter insert mode with `i`, return with Esc and use `:wq` to write and quit.

D:

Invoke `bash script.sh` to have Bash read the script when permitted. This instead targets Script invocation via bash, not the specific vi insert mode and write quit requirement in the question. The edited file persists on disk after vi exits.

Question 144

A beginner needs to view filenames that start with a dot. Which command or configuration decision is MOST appropriate?

  1. Use `ls -l` alone to guarantee display of every dotfile.
  2. Rename `.bashrc` to remove all hidden file semantics.
  3. Use `ls -a` to include hidden dot-prefixed entries.
  4. Use `ls -R` for a recursive listing of the directory hierarchy.

Explanation

Correct Answer

C:

Use `ls -a` to include hidden dot-prefixed entries. The same Hidden dotfiles and ls -a principle applies in this second case. Default `ls` usually hides dot-prefixed names unless an option requests them. Success would be shown when dot-prefixed files appear alongside other directory entries.

Incorrect Answers

A:

Missing dotfiles from a default listing does not imply they were deleted. For the specified situation, this is not equivalent to use `ls -a` to include hidden dot-prefixed entries.

B:

For the specified situation, this is not equivalent to use `ls -a` to include hidden dot-prefixed entries.

D:

Use `ls -R` for a recursive listing of the directory hierarchy. This instead targets Recursive directory listings, not the specific Hidden dotfiles and ls -a requirement in the question. Dot-prefixed files appear alongside other directory entries.

Question 145

An administrator needs one privileged command while retaining an attributable user identity. Which command or configuration decision is MOST appropriate?

  1. Share the root password with all staff as the first choice.
  2. Execute the approved command with `sudo` under applicable sudoers authorization.
  3. Read `/etc/passwd` for account names, UIDs, GIDs, home directories and shells.
  4. Run any ordinary command and assume it implicitly becomes root.

Explanation

Correct Answer

B:

Execute the approved command with `sudo` under applicable sudoers authorization. The same sudo authorized privilege elevation principle applies in this second case. sudo executes a command with permitted elevated privileges and can enforce policy. Success would be shown when the intended privileged action succeeds only for an authorized operator.

Incorrect Answers

A:

Lack of sudo permission is not fixed by adding a shell alias alone. For the specified situation, this is not equivalent to execute the approved command with `sudo` under applicable sudoers authorization.

C:

The intended privileged action succeeds only for an authorized operator.

D:

Lack of sudo permission is not fixed by adding a shell alias alone. Run any ordinary command and assume it implicitly becomes root.

Question 146

A trainee needs an approachable terminal text editor to modify configuration notes. Which command or configuration decision is MOST appropriate?

  1. Enter insert mode with `i`, return with Esc and use `:wq` to write and quit.
  2. Use `less filename` and expect to save typed changes.
  3. Open the file with `nano filename`, edit, save and exit using nano's documented key shortcuts.
  4. Run `cat filename` as an interactive full-screen editor.

Explanation

Correct Answer

C:

Open the file with `nano filename`, edit, save and exit using nano's documented key shortcuts. The same nano editor save and quit principle applies in this second case. nano provides terminal-based text editing with on-screen shortcut hints. Success would be shown when the saved file contains the intended text after leaving the editor.

Incorrect Answers

A:

Enter insert mode with `i`, return with Esc and use `:wq` to write and quit. This instead targets vi insert mode and write quit, not the specific nano editor save and quit requirement in the question. The saved file contains the intended text after leaving the editor.

B:

Use `less filename` and expect to save typed changes. For the specified situation, this is not equivalent to open the file with `nano filename`, edit, save and exit using nano's documented key shortcuts. A viewer-only command does not save file modifications.

D:

Run `cat filename` as an interactive full-screen editor. For the specified situation, this is not equivalent to open the file with `nano filename`, edit, save and exit using nano's documented key shortcuts. A viewer-only command does not save file modifications.

Question 147

A student must inspect a tree without opening each child directory manually. Which command or configuration decision is MOST appropriate?

  1. Use `ls -d` expecting full recursive contents.
  2. Use a path beginning with `/` when referencing an absolute location.
  3. Use `ls -R` for a recursive listing of the directory hierarchy.
  4. Run `pwd -R` to list files.

Explanation

Correct Answer

C:

Use `ls -R` for a recursive listing of the directory hierarchy. The same Recursive directory listings principle applies in this second case. Recursive listing traverses nested directory contents rather than only a single level. Success would be shown when entries from subdirectories appear below their corresponding directory labels.

Incorrect Answers

A:

Plain `ls` on the top directory omits many descendants. For the specified situation, this is not equivalent to use `ls -R` for a recursive listing of the directory hierarchy.

B:

Use a path beginning with `/` when referencing an absolute location. This instead targets Absolute filesystem paths, not the specific Recursive directory listings requirement in the question. Entries from subdirectories appear below their corresponding directory labels.

D:

For the specified situation, this is not equivalent to use `ls -R` for a recursive listing of the directory hierarchy.

Question 148

A developer uses a test hostname that should resolve to one fixed local IP. Which command or configuration decision is MOST appropriate?

  1. Add an appropriate entry to `/etc/hosts` and verify local lookup precedence.
  2. Run `ip addr show` or target the particular interface.
  3. Edit `/etc/passwd` to create DNS records.
  4. Assume a hosts-file line changes public DNS worldwide.

Explanation

Correct Answer

A:

Add an appropriate entry to `/etc/hosts` and verify local lookup precedence. The same /etc/hosts local name entries principle applies in this second case. `/etc/hosts` provides static per-host name mappings. Success would be shown when the local host resolves the specified name to the configured IP.

Incorrect Answers

B:

Run `ip addr show` or target the particular interface. This instead targets ip addr show interface addresses, not the specific /etc/hosts local name entries requirement in the question. The local host resolves the specified name to the configured IP.

C:

A local hosts entry does not update global public DNS for other computers. For the specified situation, this is not equivalent to add an appropriate entry to `/etc/hosts` and verify local lookup precedence.

D:

For the specified situation, this is not equivalent to add an appropriate entry to `/etc/hosts` and verify local lookup precedence.

Question 149

A lab uses USB media to transport data between Linux hosts. Which command or configuration decision is MOST appropriate?

  1. Recognize the motherboard as the primary board interconnecting core components and peripherals.
  2. Identify the USB storage block device and its mounted filesystem before copying data.
  3. Assume every USB stick is always `/dev/sda`.
  4. Copy files directly into `/proc` as the USB filesystem.

Explanation

Correct Answer

B:

Identify the USB storage block device and its mounted filesystem before copying data. The same Removable USB block storage principle applies in this second case. Removable media may appear as block devices but the mount location is distinct from the device node. Success would be shown when the correct mounted volume contains the expected files.

Incorrect Answers

A:

Recognize the motherboard as the primary board interconnecting core components and peripherals. This instead targets Motherboard and peripherals, not the specific Removable USB block storage requirement in the question. The correct mounted volume contains the expected files.

C:

Writing to the wrong block device can damage another disk's data. For the specified situation, this is not equivalent to identify the USB storage block device and its mounted filesystem before copying data.

D:

Writing to the wrong block device can damage another disk's data. Copy files directly into `/proc` as the USB filesystem.

Question 150

A Linux training exercise asks which matching utility can reverse bzip2 compression. Which command or configuration decision is MOST appropriate?

  1. Run `gunzip` as the guaranteed decoder for arbitrary .bz2 data.
  2. Use `bzip2` to compress and `bunzip2` or `bzip2 -d` to decompress.
  3. Use `zip -r files.zip folder/` to create the archive and `unzip files.zip` to extract.
  4. Rename the suffix to .gz without recompressing.

Explanation

Correct Answer

B:

Use `bzip2` to compress and `bunzip2` or `bzip2 -d` to decompress. The same bzip2 compressed streams principle applies in this second case. bzip2 is a compression format distinct from gzip and xz. Success would be shown when the decompressed file matches the original content.

Incorrect Answers

A:

Sending bzip2 data to an unrelated decompressor can cause format errors. For the specified situation, this is not equivalent to use `bzip2` to compress and `bunzip2` or `bzip2 -d` to decompress.

C:

Use `zip -r files.zip folder/` to create the archive and `unzip files.zip` to extract. This instead targets ZIP archives and unzip, not the specific bzip2 compressed streams requirement in the question. The decompressed file matches the original content.

D:

For the specified situation, this is not equivalent to use `bzip2` to compress and `bunzip2` or `bzip2 -d` to decompress.

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