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 72

Question 710

A learner opens vi and needs to insert text then save and exit. A check then reveals: Typing text in command mode can trigger actions rather than insert characters. Which targeted correction BEST restores the required behavior?

  1. Switch modes intentionally and save with a write command.
  2. Use `:q!` expecting unsaved edits to be kept.
  3. Assume pressing `i` in a terminal outside vi edits a file.
  4. Use nano's save command and verify the resulting file.

Explanation

Correct Answer

A:

Switch modes intentionally and save with a write command. This repairs vi insert mode and write quit and should be checked by seeing that the edited file persists on disk after vi exits.

Incorrect Answers

B:

Use `:q!` expecting unsaved edits to be kept. This does not remedy the diagnosed vi insert mode and write quit failure; vi separates command mode and insert mode, so editing and saving require mode-aware commands.

C:

Assume pressing `i` in a terminal outside vi edits a file. This does not remedy the diagnosed vi insert mode and write quit failure; vi separates command mode and insert mode, so editing and saving require mode-aware commands.

D:

Use nano's save command and verify the resulting file. This is a remedy for nano editor save and quit, not the symptom in this vi insert mode and write quit case. Typing text in command mode can trigger actions rather than insert characters.

Question 711

A trainee asks what the first line `#!/bin/bash` does in a shell script. A check then reveals: Without a suitable interpreter or execution method, a script may not run as intended. Which targeted correction BEST restores the required behavior?

  1. Run the script through Bash or grant execute permission for direct invocation.
  2. Put `#/bin/bash` without `!` and assume it is a shebang.
  3. Put a Bash comment after the last line and expect it to select the interpreter.
  4. Begin the file with a valid interpreter line and test execution.

Explanation

Correct Answer

D:

Begin the file with a valid interpreter line and test execution. This repairs Shebang shell interpreter and should be checked by seeing that direct script execution selects the indicated interpreter.

Incorrect Answers

A:

Run the script through Bash or grant execute permission for direct invocation. This is a remedy for Script invocation via bash, not the symptom in this Shebang shell interpreter case. Without a suitable interpreter or execution method, a script may not run as intended.

B:

Put `#/bin/bash` without `!` and assume it is a shebang. This does not remedy the diagnosed Shebang shell interpreter failure; a shebang identifies the interpreter used when the operating system directly executes a script.

C:

Put a Bash comment after the last line and expect it to select the interpreter. This does not remedy the diagnosed Shebang shell interpreter failure; a shebang identifies the interpreter used when the operating system directly executes a script.

Question 712

A script needs to refresh a file's modification timestamp without editing its contents. A check then reveals: Creating a directory instead of a file changes the expected object type. Which targeted correction BEST restores the required behavior?

  1. Use `rm notes.txt` to refresh its timestamp.
  2. Use `touch` on the requested file path.
  3. Move the item after checking whether a destination exists.
  4. Run `mkdir notes.txt` to create a regular file.

Explanation

Correct Answer

B:

Use `touch` on the requested file path. This repairs touch empty files and timestamps and should be checked by seeing that the file exists or its timestamp changes without adding text contents.

Incorrect Answers

A:

Use `rm notes.txt` to refresh its timestamp. This does not remedy the diagnosed touch empty files and timestamps failure; `touch` creates an empty file when missing and normally updates timestamps when present.

C:

Move the item after checking whether a destination exists. This is a remedy for mv rename and relocation, not the symptom in this touch empty files and timestamps case. Creating a directory instead of a file changes the expected object type.

D:

Run `mkdir notes.txt` to create a regular file. This does not remedy the diagnosed touch empty files and timestamps failure; `touch` creates an empty file when missing and normally updates timestamps when present.

Question 713

A user primarily uses graphical applications but sometimes needs detailed system control. A check then reveals: Replacing all shell automation with manually repeated clicks can be error-prone. Which targeted correction BEST restores the required behavior?

  1. Assume Linux prohibits a desktop graphical interface.
  2. Verify the release phase and lifecycle before installation.
  3. Select an interface based on repeatability and task requirements.
  4. Use a browser tab as the operating-system shell.

Explanation

Correct Answer

C:

Select an interface based on repeatability and task requirements. This repairs GUI and command-line tradeoffs and should be checked by seeing that repeated operations can run consistently from shell commands.

Incorrect Answers

A:

Assume Linux prohibits a desktop graphical interface. This does not remedy the diagnosed GUI and command-line tradeoffs failure; linux can provide both graphical and text interfaces suited to different tasks.

B:

Verify the release phase and lifecycle before installation. This is a remedy for Stable versus beta distribution releases, not the symptom in this GUI and command-line tradeoffs case. Replacing all shell automation with manually repeated clicks can be error-prone.

D:

Use a browser tab as the operating-system shell. This does not remedy the diagnosed GUI and command-line tradeoffs failure; linux can provide both graphical and text interfaces suited to different tasks.

Question 714

A maintenance session must switch to a service user for a permitted troubleshooting task. A check then reveals: Assuming su without authorization grants elevated access can lead to authentication failure. Which targeted correction BEST restores the required behavior?

  1. Use `pwd` to change the current user identity.
  2. Switch identities only with legitimate credentials or policy.
  3. Rename the home directory to become its owner.
  4. Interpret passwd file fields according to the documented format.

Explanation

Correct Answer

B:

Switch identities only with legitimate credentials or policy. This repairs su switching user identity and should be checked by seeing that the resulting shell identity and environment reflect the target user.

Incorrect Answers

A:

Use `pwd` to change the current user identity. This does not remedy the diagnosed su switching user identity failure; su starts a shell or command under another user identity; login-mode options affect the environment.

C:

Rename the home directory to become its owner. This does not remedy the diagnosed su switching user identity failure; su starts a shell or command under another user identity; login-mode options affect the environment.

D:

Interpret passwd file fields according to the documented format. This is a remedy for /etc/passwd public account metadata, not the symptom in this su switching user identity case. Assuming su without authorization grants elevated access can lead to authentication failure.

Question 715

An administrator wants to inspect traditional syslog-style log files on a Linux host. A check then reveals: The wrong filesystem directory may hide important diagnostics. Which targeted correction BEST restores the required behavior?

  1. Use `/dev/null` to recover historic logs.
  2. Check service logging configuration and the appropriate log files.
  3. Inspect `/boot` as the universal application log folder.
  4. Use documented sysfs interfaces for inspecting hardware state.

Explanation

Correct Answer

B:

Check service logging configuration and the appropriate log files. This repairs /var/log system messages and should be checked by seeing that relevant diagnostic entries appear in the configured log destination.

Incorrect Answers

A:

Use `/dev/null` to recover historic logs. This does not remedy the diagnosed /var/log system messages failure; `/var/log` commonly contains variable log data on traditional Linux layouts.

C:

Inspect `/boot` as the universal application log folder. This does not remedy the diagnosed /var/log system messages failure; `/var/log` commonly contains variable log data on traditional Linux layouts.

D:

Use documented sysfs interfaces for inspecting hardware state. This is a remedy for /sys device and kernel interfaces, not the symptom in this /var/log system messages case. The wrong filesystem directory may hide important diagnostics.

Question 716

A student wants to grant only the file owner execute permission without opening it to everyone. A check then reveals: Using `a+x` would affect all user classes rather than only the owner. Which targeted correction BEST restores the required behavior?

  1. Inspect parent-directory permissions and sticky-bit behavior.
  2. Modify the intended permission class and verify with ls -l.
  3. Run `chmod a+x` and claim only owner rights changed.
  4. Use `chown` to set an execute bit directly.

Explanation

Correct Answer

B:

Modify the intended permission class and verify with ls -l. This repairs chmod symbolic execute flag and should be checked by seeing that the resulting owner permission triplet includes the execute bit.

Incorrect Answers

A:

Inspect parent-directory permissions and sticky-bit behavior. This is a remedy for Directory write and delete rights, not the symptom in this chmod symbolic execute flag case. Using `a+x` would affect all user classes rather than only the owner.

C:

Run `chmod a+x` and claim only owner rights changed. This does not remedy the diagnosed chmod symbolic execute flag failure; symbolic chmod adds or removes rights for specified classes without necessarily replacing other rights.

D:

Use `chown` to set an execute bit directly. This does not remedy the diagnosed chmod symbolic execute flag failure; symbolic chmod adds or removes rights for specified classes without necessarily replacing other rights.

Question 717

A student needs to link to a target without duplicating its file contents. A check then reveals: Copying the file creates an independent data copy rather than a path link. Which targeted correction BEST restores the required behavior?

  1. Create a symbolic link and verify its target with ls -l.
  2. Use `cp` and assume it creates a symbolic link by default.
  3. Correct the link path or restore the referenced target.
  4. Run `ln target linkname` and claim it must be symbolic.

Explanation

Correct Answer

A:

Create a symbolic link and verify its target with ls -l. This repairs Symbolic links with ln -s and should be checked by seeing that the link resolves to the target when the path is valid.

Incorrect Answers

B:

Use `cp` and assume it creates a symbolic link by default. This does not remedy the diagnosed Symbolic links with ln -s failure; a symbolic link stores a path reference and can point across filesystems.

C:

Correct the link path or restore the referenced target. This is a remedy for Dangling symbolic links, not the symptom in this Symbolic links with ln -s case. Copying the file creates an independent data copy rather than a path link.

D:

Run `ln target linkname` and claim it must be symbolic. This does not remedy the diagnosed Symbolic links with ln -s failure; a symbolic link stores a path reference and can point across filesystems.

Question 718

A student must count log lines without printing every entry. A check then reveals: Using word count can misrepresent a line-oriented record count. Which targeted correction BEST restores the required behavior?

  1. Connect filtering output to the counting stage.
  2. Use `wc -c` to count lines.
  3. Use `sort` alone as a numerical line-count tool.
  4. Choose the line-count option while checking whether the last line has a newline.

Explanation

Correct Answer

D:

Choose the line-count option while checking whether the last line has a newline. This repairs wc line counting and should be checked by seeing that the output reports the number of newline terminators in the input.

Incorrect Answers

A:

Connect filtering output to the counting stage. This is a remedy for Pipes connecting commands, not the symptom in this wc line counting case. Using word count can misrepresent a line-oriented record count.

B:

Use `wc -c` to count lines. This does not remedy the diagnosed wc line counting failure; `wc -l` counts newline characters rather than all byte or word units.

C:

Use `sort` alone as a numerical line-count tool. This does not remedy the diagnosed wc line counting failure; `wc -l` counts newline characters rather than all byte or word units.

Question 719

A trainee needs a snapshot of current processes under Linux. A check then reveals: Reading disk capacity cannot identify all running processes. Which targeted correction BEST restores the required behavior?

  1. Run `free` to list all process command lines.
  2. Use ps options that display the desired processes and IDs.
  3. Use `touch` to obtain the PID list.
  4. Use documented sysfs interfaces for inspecting hardware state.

Explanation

Correct Answer

B:

Use ps options that display the desired processes and IDs. This repairs ps process listing and should be checked by seeing that the listing includes process IDs and command information.

Incorrect Answers

A:

Run `free` to list all process command lines. This does not remedy the diagnosed ps process listing failure; `ps` provides a snapshot of processes, not continuously updated interactive monitoring.

C:

Use `touch` to obtain the PID list. This does not remedy the diagnosed ps process listing failure; `ps` provides a snapshot of processes, not continuously updated interactive monitoring.

D:

Use documented sysfs interfaces for inspecting hardware state. This is a remedy for /sys device and kernel interfaces, not the symptom in this ps process listing case. Reading disk capacity cannot identify all running processes.

Question 720

A training lab provisions a separate account for a new student. A check then reveals: Assuming a user account exists because a home directory was manually created is unsafe. Which targeted correction BEST restores the required behavior?

  1. Maintain the skeleton files and verify the account-creation settings.
  2. Copy an existing home directory without adding an account record.
  3. Create the account using useradd and configure the login environment.
  4. Run `groupadd` alone expecting a login user.

Explanation

Correct Answer

C:

Create the account using useradd and configure the login environment. This repairs useradd new local account and should be checked by seeing that the new user has an account record with the expected UID and home policy.

Incorrect Answers

A:

Maintain the skeleton files and verify the account-creation settings. This is a remedy for /etc/skel new home templates, not the symptom in this useradd new local account case. Assuming a user account exists because a home directory was manually created is unsafe.

B:

Copy an existing home directory without adding an account record. This does not remedy the diagnosed useradd new local account failure; useradd creates a local account; additional options or distribution defaults control home and shell setup.

D:

Run `groupadd` alone expecting a login user. This does not remedy the diagnosed useradd new local account failure; useradd creates a local account; additional options or distribution defaults control home and shell setup.

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