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 74

Question 730

A class wants a script to report success explicitly when all operations succeed. A check then reveals: Returning success after a failed critical command can mislead later automation. Which targeted correction BEST restores the required behavior?

  1. Print an error message but always force zero status.
  2. Choose an appropriate exit code and propagate real failures.
  3. Use `exit 1` to indicate unequivocal success.
  4. Begin the file with a valid interpreter line and test execution.

Explanation

Correct Answer

B:

Choose an appropriate exit code and propagate real failures. This repairs Exit code on script completion and should be checked by seeing that the caller can distinguish success and failure through the process exit status.

Incorrect Answers

A:

Print an error message but always force zero status. This does not remedy the diagnosed Exit code on script completion failure; conventionally zero exit status means success and nonzero signals a problem.

C:

Use `exit 1` to indicate unequivocal success. This does not remedy the diagnosed Exit code on script completion failure; conventionally zero exit status means success and nonzero signals a problem.

D:

Begin the file with a valid interpreter line and test execution. This is a remedy for Shebang shell interpreter, not the symptom in this Exit code on script completion case. Returning success after a failed critical command can mislead later automation.

Question 731

An administrator needs to make default creation modes more restrictive in a shell session. A check then reveals: Misunderstanding the mask may expose newly created data. Which targeted correction BEST restores the required behavior?

  1. Inspect parent-directory permissions and sticky-bit behavior.
  2. Choose and test an appropriate mask for the working context.
  3. Use umask to grant automatic execute permission to every file.
  4. Set umask 000 and expect it to remove all public rights.

Explanation

Correct Answer

B:

Choose and test an appropriate mask for the working context. This repairs umask default permission reduction and should be checked by seeing that new files and directories have effective modes reduced by the specified mask.

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 umask default permission reduction case. Misunderstanding the mask may expose newly created data.

C:

Use umask to grant automatic execute permission to every file. This does not remedy the diagnosed umask default permission reduction failure; umask removes permission bits from creation defaults; it does not add execute to regular files.

D:

Set umask 000 and expect it to remove all public rights. This does not remedy the diagnosed umask default permission reduction failure; umask removes permission bits from creation defaults; it does not add execute to regular files.

Question 732

A Linux training exercise asks which matching utility can reverse bzip2 compression. A check then reveals: Sending bzip2 data to an unrelated decompressor can cause format errors. Which targeted correction BEST restores the required behavior?

  1. Run `gunzip` as the guaranteed decoder for arbitrary .bz2 data.
  2. Use gzip and gunzip for compatible single-file streams.
  3. Rename the suffix to .gz without recompressing.
  4. Select the bzip2-compatible utility for the .bz2 stream.

Explanation

Correct Answer

D:

Select the bzip2-compatible utility for the .bz2 stream. This repairs bzip2 compressed streams and should be checked by seeing that the decompressed file matches the original content.

Incorrect Answers

A:

Run `gunzip` as the guaranteed decoder for arbitrary .bz2 data. This does not remedy the diagnosed bzip2 compressed streams failure; bzip2 is a compression format distinct from gzip and xz.

B:

Use gzip and gunzip for compatible single-file streams. This is a remedy for gzip compression and gunzip, not the symptom in this bzip2 compressed streams case. Sending bzip2 data to an unrelated decompressor can cause format errors.

C:

Rename the suffix to .gz without recompressing. This does not remedy the diagnosed bzip2 compressed streams failure; bzip2 is a compression format distinct from gzip and xz.

Question 733

A trainee sees a command name shadowed by an alias and wants to inspect its resolution. A check then reveals: Using the file viewer cannot reveal all shell alias resolution paths. Which targeted correction BEST restores the required behavior?

  1. Check resolution with the shell's `type` builtin.
  2. Expect `ls -l` to reveal all aliases.
  3. Use `cat cd` to classify the shell builtin.
  4. Select quoted or unquoted glob syntax according to the task.

Explanation

Correct Answer

A:

Check resolution with the shell's `type` builtin. This repairs type and builtin identification and should be checked by seeing that the result identifies a builtin, alias, keyword or executable as applicable.

Incorrect Answers

B:

Expect `ls -l` to reveal all aliases. This does not remedy the diagnosed type and builtin identification failure; bash `type` reports command interpretation rather than a file's content type.

C:

Use `cat cd` to classify the shell builtin. This does not remedy the diagnosed type and builtin identification failure; bash `type` reports command interpretation rather than a file's content type.

D:

Select quoted or unquoted glob syntax according to the task. This is a remedy for Globbing versus literal pattern, not the symptom in this type and builtin identification case. Using the file viewer cannot reveal all shell alias resolution paths.

Question 734

A lab script should update packages from the host's configured software sources. A check then reveals: Manually copying unknown executables does not manage dependencies or security updates. Which targeted correction BEST restores the required behavior?

  1. Deploy a supported relational database and configure access permissions.
  2. Install source archives without checking any origin or dependency.
  3. Rename a downloaded .tar file into a signed repository.
  4. Prefer the configured trusted repositories and matching package manager.

Explanation

Correct Answer

D:

Prefer the configured trusted repositories and matching package manager. This repairs Native distribution package repositories and should be checked by seeing that installed packages and dependency versions are tracked by the repository tools.

Incorrect Answers

A:

Deploy a supported relational database and configure access permissions. This is a remedy for MariaDB and MySQL data stores, not the symptom in this Native distribution package repositories case. Manually copying unknown executables does not manage dependencies or security updates.

B:

Install source archives without checking any origin or dependency. This does not remedy the diagnosed Native distribution package repositories failure; package managers and repositories coordinate software metadata, updates and dependencies.

C:

Rename a downloaded .tar file into a signed repository. This does not remedy the diagnosed Native distribution package repositories failure; package managers and repositories coordinate software metadata, updates and dependencies.

Question 735

A class needs independent Linux environments on shared host hardware. A check then reveals: Installing a guest image without sufficient resources can prevent usable tests. Which targeted correction BEST restores the required behavior?

  1. Check the real publisher address and any supplied download hashes.
  2. Overwrite the host's boot disk as the only way to try Linux.
  3. Allocate resources and verify the Linux guest boots before exercises.
  4. Assume a VM must use the host's identical operating system.

Explanation

Correct Answer

C:

Allocate resources and verify the Linux guest boots before exercises. This repairs Local virtualization and guest operating systems and should be checked by seeing that the guest boots separately while the host operating system remains intact.

Incorrect Answers

A:

Check the real publisher address and any supplied download hashes. This is a remedy for Browser HTTPS and site verification, not the symptom in this Local virtualization and guest operating systems case. Installing a guest image without sufficient resources can prevent usable tests.

B:

Overwrite the host's boot disk as the only way to try Linux. This does not remedy the diagnosed Local virtualization and guest operating systems failure; virtualization lets multiple guest operating systems share a physical host via a hypervisor.

D:

Assume a VM must use the host's identical operating system. This does not remedy the diagnosed Local virtualization and guest operating systems failure; virtualization lets multiple guest operating systems share a physical host via a hypervisor.

Question 736

A trainee asks how Bash represents the immediately preceding command's return code. A check then reveals: Checking the status after additional commands can inspect the wrong operation. Which targeted correction BEST restores the required behavior?

  1. Treat standard output text as the universal exit status.
  2. Read `$HOME` to obtain the prior exit code.
  3. Capture the exit status as soon as the command finishes.
  4. Inspect history while avoiding sensitive command reuse.

Explanation

Correct Answer

C:

Capture the exit status as soon as the command finishes. This repairs Exit status from previous command and should be checked by seeing that 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. This does not remedy the diagnosed Exit status from previous command failure; `$?` contains the previous foreground command's exit status in Bash.

B:

Read `$HOME` to obtain the prior exit code. This does not remedy the diagnosed Exit status from previous command failure; `$?` contains the previous foreground command's exit status in Bash.

D:

Inspect history while avoiding sensitive command reuse. This is a remedy for Shell history recall, not the symptom in this Exit status from previous command case. Checking the status after additional commands can inspect the wrong operation.

Question 737

An administrator audits which supplementary groups a local account belongs to. A check then reveals: Editing a directory listing is not equivalent to managing group databases. Which targeted correction BEST restores the required behavior?

  1. Put group memberships exclusively into `/etc/hosts`.
  2. Manage group membership with supported tools and confirm it in account records.
  3. Maintain the skeleton files and verify the account-creation settings.
  4. Use `ls -R` as an account group database editor.

Explanation

Correct Answer

B:

Manage group membership with supported tools and confirm it in account records. This repairs /etc/group account membership records and should be checked by seeing that a group entry shows its group name, GID and listed supplementary members.

Incorrect Answers

A:

Put group memberships exclusively into `/etc/hosts`. This does not remedy the diagnosed /etc/group account membership records failure; `/etc/group` records local group identities and supplemental membership lists.

C:

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 /etc/group account membership records case. Editing a directory listing is not equivalent to managing group databases.

D:

Use `ls -R` as an account group database editor. This does not remedy the diagnosed /etc/group account membership records failure; `/etc/group` records local group identities and supplemental membership lists.

Question 738

A class needs to run a newly created shell script directly from its directory. A check then reveals: A readable but non-executable script may require explicit interpreter invocation. Which targeted correction BEST restores the required behavior?

  1. Set executable permission after checking the script's interpreter.
  2. Use quoted expansions for pathname values.
  3. Use `chmod -x backup.sh` expecting direct execution.
  4. Rename the file extension to .exe.

Explanation

Correct Answer

A:

Set executable permission after checking the script's interpreter. This repairs Script execute permission and should be checked by seeing that the script runs when invoked directly by a permitted user.

Incorrect Answers

B:

Use quoted expansions for pathname values. This is a remedy for Quoting script argument expansion, not the symptom in this Script execute permission case. A readable but non-executable script may require explicit interpreter invocation.

C:

Use `chmod -x backup.sh` expecting direct execution. This does not remedy the diagnosed Script execute permission failure; executable permission and interpreter availability are relevant to direct script invocation.

D:

Rename the file extension to .exe. This does not remedy the diagnosed Script execute permission failure; executable permission and interpreter availability are relevant to direct script invocation.

Question 739

A class compares active sessions with historical login records. A check then reveals: Treating a login-history command as a list of all installed users gives incorrect scope. Which targeted correction BEST restores the required behavior?

  1. Select the session tool matching current versus historical activity.
  2. Interpret passwd file fields according to the documented format.
  3. Use `free` to identify active users.
  4. Run `last` and assume it shows only current sessions.

Explanation

Correct Answer

A:

Select the session tool matching current versus historical activity. This repairs who w and last login activity and should be checked by seeing that the output distinguishes current users from previously recorded login sessions.

Incorrect Answers

B:

Interpret passwd file fields according to the documented format. This is a remedy for /etc/passwd public account metadata, not the symptom in this who w and last login activity case. Treating a login-history command as a list of all installed users gives incorrect scope.

C:

Use `free` to identify active users. This does not remedy the diagnosed who w and last login activity failure; login-session reporting differs from process snapshots and account databases.

D:

Run `last` and assume it shows only current sessions. This does not remedy the diagnosed who w and last login activity failure; login-session reporting differs from process snapshots and account databases.

Question 740

A student wishes to find a recently issued command without reconstructing it. A check then reveals: Mistaking command history for permanent secure audit storage gives incomplete evidence. Which targeted correction BEST restores the required behavior?

  1. Check the real publisher address and any supplied download hashes.
  2. Run `rm -rf` to display the command history.
  3. Inspect shell history and avoid entering secrets as command arguments.
  4. Treat the browser cache as Bash command history.

Explanation

Correct Answer

C:

Inspect shell history and avoid entering secrets as command arguments. This repairs Terminal access and shell history and should be checked by seeing that the intended earlier command appears in the interactive shell history.

Incorrect Answers

A:

Check the real publisher address and any supplied download hashes. This is a remedy for Browser HTTPS and site verification, not the symptom in this Terminal access and shell history case. Mistaking command history for permanent secure audit storage gives incomplete evidence.

B:

Run `rm -rf` to display the command history. This does not remedy the diagnosed Terminal access and shell history failure; interactive shells can maintain command history but sensitive inputs should not be recorded unnecessarily.

D:

Treat the browser cache as Bash command history. This does not remedy the diagnosed Terminal access and shell history failure; interactive shells can maintain command history but sensitive inputs should not be recorded unnecessarily.

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