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 86

Question 850

A file has codes such as `cat` and `cot` and the search should match one character in a given set. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Use a bracket expression such as `grep 'c[ao]t' file`.
  2. Use `grep 'c(ao)t'` as a basic-regex guarantee of either character.
  3. Treat `*` as a shell filename wildcard inside every regular expression.
  4. Use `wc -w` to match the regular expression.
  5. Lines containing either indicated single-character alternative match.

Explanation

Correct Answers

A:

Use a bracket expression such as `grep 'c[ao]t' file`. This is the actual implementation for Basic regular-expression character classes.

E:

Lines containing either indicated single-character alternative match. This provides direct evidence of the intended Basic regular-expression character classes behavior.

Incorrect Answers

B:

Use `grep 'c(ao)t'` as a basic-regex guarantee of either character. This does not contribute a sound implementation or validation step for Basic regular-expression character classes. Literal unquoted brackets or the wrong pattern can change the match set.

C:

Treat `*` as a shell filename wildcard inside every regular expression. This does not contribute a sound implementation or validation step for Basic regular-expression character classes. Literal unquoted brackets or the wrong pattern can change the match set.

D:

Use `wc -w` to match the regular expression. This does not contribute a sound implementation or validation step for Basic regular-expression character classes. Literal unquoted brackets or the wrong pattern can change the match set.

Question 851

A student is asked where Linux bootloader and kernel boot files are often stored. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Search `/tmp` as the universal permanent kernel image location.
  2. Treat `/var/log/messages` as a kernel executable image.
  3. Inspect `/boot` for boot-related kernel and loader files when the distribution uses that layout.
  4. Use `/etc/passwd` as the Linux bootloader binary.
  5. Kernel images or loader assets appear in the designated boot path.

Explanation

Correct Answers

C:

Inspect `/boot` for boot-related kernel and loader files when the distribution uses that layout. This is the actual implementation for /boot kernel startup files.

E:

Kernel images or loader assets appear in the designated boot path. This provides direct evidence of the intended /boot kernel startup files behavior.

Incorrect Answers

A:

Search `/tmp` as the universal permanent kernel image location. This does not contribute a sound implementation or validation step for /boot kernel startup files. Mistaking runtime logs for boot images can cause administration errors.

B:

Treat `/var/log/messages` as a kernel executable image. This does not contribute a sound implementation or validation step for /boot kernel startup files. Mistaking runtime logs for boot images can cause administration errors.

D:

Use `/etc/passwd` as the Linux bootloader binary. This does not contribute a sound implementation or validation step for /boot kernel startup files. Mistaking runtime logs for boot images can cause administration errors.

Question 852

A developer wants to ask DNS for the addresses associated with a domain. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Run `ping` as a guaranteed DNS record listing tool.
  2. Use `free` to retrieve nameserver records.
  3. Run `host example.org` or an equivalent DNS lookup query.
  4. Returned DNS resource data reflects the configured resolver's answer.
  5. Check only the disk partitions for DNS answers.

Explanation

Correct Answers

C:

Run `host example.org` or an equivalent DNS lookup query. This is the actual implementation for host DNS name lookup.

D:

Returned DNS resource data reflects the configured resolver's answer. This provides direct evidence of the intended host DNS name lookup behavior.

Incorrect Answers

A:

Run `ping` as a guaranteed DNS record listing tool. This does not contribute a sound implementation or validation step for host DNS name lookup. Confusing name resolution with ICMP masks the failing layer.

B:

Use `free` to retrieve nameserver records. This does not contribute a sound implementation or validation step for host DNS name lookup. Confusing name resolution with ICMP masks the failing layer.

E:

Check only the disk partitions for DNS answers. This does not contribute a sound implementation or validation step for host DNS name lookup. Confusing name resolution with ICMP masks the failing layer.

Question 853

A student wants `echo '$HOME'` to print the dollar sign and name literally. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Remove all quote characters and expect identical behavior for every argument.
  2. The single-quoted command prints `$USER` or `$HOME` literally.
  3. Use single quotes for literal `$` text and double quotes when variable expansion is wanted.
  4. Expect double quotes to disable every `$variable` expansion.
  5. Assume single quotes perform all variable expansions.

Explanation

Correct Answers

B:

The single-quoted command prints `$USER` or `$HOME` literally. This provides direct evidence of the intended Single versus double shell quotes behavior.

C:

Use single quotes for literal `$` text and double quotes when variable expansion is wanted. This is the actual implementation for Single versus double shell quotes.

Incorrect Answers

A:

Remove all quote characters and expect identical behavior for every argument. This does not contribute a sound implementation or validation step for Single versus double shell quotes. Quoting incorrectly can change text into expanded values.

D:

Expect double quotes to disable every `$variable` expansion. This does not contribute a sound implementation or validation step for Single versus double shell quotes. Quoting incorrectly can change text into expanded values.

E:

Assume single quotes perform all variable expansions. This does not contribute a sound implementation or validation step for Single versus double shell quotes. Quoting incorrectly can change text into expanded values.

Question 854

Newly created files should not be accessible to all local users by default. Select TWO statements that together form an appropriate implementation and validation plan.

  1. New files and directories have effective modes reduced by the specified mask.
  2. Configure a suitable `umask` to clear unwanted default permissions.
  3. Set umask 000 and expect it to remove all public rights.
  4. Assume umask rewrites existing files' permissions retroactively.
  5. Use umask to grant automatic execute permission to every file.

Explanation

Correct Answers

A:

New files and directories have effective modes reduced by the specified mask. This provides direct evidence of the intended umask default permission reduction behavior.

B:

Configure a suitable `umask` to clear unwanted default permissions. This is the actual implementation for umask default permission reduction.

Incorrect Answers

C:

Set umask 000 and expect it to remove all public rights. This does not contribute a sound implementation or validation step for umask default permission reduction. Misunderstanding the mask may expose newly created data.

D:

Assume umask rewrites existing files' permissions retroactively. This does not contribute a sound implementation or validation step for umask default permission reduction. Misunderstanding the mask may expose newly created data.

E:

Use umask to grant automatic execute permission to every file. This does not contribute a sound implementation or validation step for umask default permission reduction. Misunderstanding the mask may expose newly created data.

Question 855

A trainee writes `ls -l /tmp` and asks which token changes the listing format. Select TWO statements that together form an appropriate implementation and validation plan.

  1. The output uses long listing format for the specified directory.
  2. Treat `ls` as the command, `-l` as the option and `/tmp` as its argument.
  3. Use `/tmp` as an executable to list itself.
  4. Assume whitespace never separates command-line arguments.
  5. Treat `-l` as a universal shell variable.

Explanation

Correct Answers

A:

This provides direct evidence of the intended Bash command and argument structure behavior.

B:

Treat `ls` as the command, `-l` as the option and `/tmp` as its argument. This is the actual implementation for Bash command and argument structure.

Incorrect Answers

C:

Use `/tmp` as an executable to list itself. This does not contribute a sound implementation or validation step for Bash command and argument structure. Treating option flags as pathnames changes the operation.

D:

Assume whitespace never separates command-line arguments. This does not contribute a sound implementation or validation step for Bash command and argument structure. Treating option flags as pathnames changes the operation.

E:

Treat `-l` as a universal shell variable. This does not contribute a sound implementation or validation step for Bash command and argument structure. Treating option flags as pathnames changes the operation.

Question 856

A training folder named `Project Files` must be used as one pathname argument. Select TWO statements that together form an appropriate implementation and validation plan.

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

Explanation

Correct Answers

A:

Quote the entire path or escape its spaces, for example `cd "Project Files"`. This is the actual implementation for Escaping spaces in shell paths.

D:

The shell treats the spaced name as one pathname instead of multiple words. This provides direct evidence of the intended Escaping spaces in shell paths behavior.

Incorrect Answers

B:

Use an unquoted variable containing spaces as an automatically safe pathname. This does not contribute a sound implementation or validation step for Escaping spaces in shell paths. An unquoted spaced path is split into separate words and may make the command act on the wrong target.

C:

Run `cd Project Files` and assume it is always one argument. This does not contribute a sound implementation or validation step for Escaping spaces in shell paths. An unquoted spaced path is split into separate words and may make the command act on the wrong target.

E:

Delete the spaces from every file without checking names. This does not contribute a sound implementation or validation step for Escaping spaces in shell paths. An unquoted spaced path is split into separate words and may make the command act on the wrong target.

Question 857

A script receives `Quarterly Reports` as a single quoted argument and must preserve the space. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Surround arguments with single quotes that prevent the desired variable expansion.
  2. Expand variables and positional arguments in double quotes, for example `"$1"`.
  3. Replace every space in the file name before passing it.
  4. The intended pathname remains one argument when passed to another command.
  5. Pass `$1` unquoted and assume whitespace is always preserved.

Explanation

Correct Answers

B:

Expand variables and positional arguments in double quotes, for example `"$1"`. This is the actual implementation for Quoting script argument expansion.

D:

The intended pathname remains one argument when passed to another command. This provides direct evidence of the intended Quoting script argument expansion behavior.

Incorrect Answers

A:

Surround arguments with single quotes that prevent the desired variable expansion. This does not contribute a sound implementation or validation step for Quoting script argument expansion. An unquoted expansion may split the path into two command arguments.

C:

Replace every space in the file name before passing it. This does not contribute a sound implementation or validation step for Quoting script argument expansion. An unquoted expansion may split the path into two command arguments.

E:

Pass `$1` unquoted and assume whitespace is always preserved. This does not contribute a sound implementation or validation step for Quoting script argument expansion. An unquoted expansion may split the path into two command arguments.

Question 858

A trainee must duplicate a report while keeping its original. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Use `rm draft.txt` to preserve the source.
  2. Run `mv draft.txt review.txt` expecting both names to remain.
  3. Run `rmdir draft.txt` to copy a file.
  4. Both the original and destination paths are present with copied data.
  5. Use `cp draft.txt review.txt` when source and destination are regular files.

Explanation

Correct Answers

D:

Both the original and destination paths are present with copied data. This provides direct evidence of the intended cp regular file behavior.

E:

Use `cp draft.txt review.txt` when source and destination are regular files. This is the actual implementation for cp regular file.

Incorrect Answers

A:

Use `rm draft.txt` to preserve the source. This does not contribute a sound implementation or validation step for cp regular file. Using move semantics would remove the original pathname.

B:

Run `mv draft.txt review.txt` expecting both names to remain. This does not contribute a sound implementation or validation step for cp regular file. Using move semantics would remove the original pathname.

C:

Run `rmdir draft.txt` to copy a file. This does not contribute a sound implementation or validation step for cp regular file. Using move semantics would remove the original pathname.

Question 859

A script must print the names `red`, `green` and `blue` once each. Select TWO statements that together form an appropriate implementation and validation plan.

  1. The loop produces one line per supplied item.
  2. Use an `if` statement as an exact substitute for iteration.
  3. Use a Bash `for item in red green blue; do echo "$item"; done` loop.
  4. Use `for` without `do` and assume it is complete.
  5. Assign a scalar once and expect it to iterate automatically.

Explanation

Correct Answers

A:

The loop produces one line per supplied item. This provides direct evidence of the intended Loop over fixed items behavior.

C:

Use a Bash `for item in red green blue; do echo "$item"; done` loop. This is the actual implementation for Loop over fixed items.

Incorrect Answers

B:

Use an `if` statement as an exact substitute for iteration. This does not contribute a sound implementation or validation step for Loop over fixed items. Omitting the loop terminator or variable expansion changes the expected output.

D:

Use `for` without `do` and assume it is complete. This does not contribute a sound implementation or validation step for Loop over fixed items. Omitting the loop terminator or variable expansion changes the expected output.

E:

Assign a scalar once and expect it to iterate automatically. This does not contribute a sound implementation or validation step for Loop over fixed items. Omitting the loop terminator or variable expansion changes the expected output.

Question 860

A server uses a Red Hat Enterprise Linux compatible distribution and needs managed software updates. Select TWO statements that together form an appropriate implementation and validation plan.

  1. Disable repository signatures to make arbitrary packages compatible.
  2. Installed package metadata and repository updates show packages from the RPM-compatible ecosystem.
  3. Rename a .deb archive to .rpm to convert its format.
  4. Use apt-get and .deb files as the universal RHEL workflow.
  5. Use RPM-family packages and the distribution's supported DNF or YUM repository manager.

Explanation

Correct Answers

B:

Installed package metadata and repository updates show packages from the RPM-compatible ecosystem. This provides direct evidence of the intended Red Hat enterprise package family behavior.

E:

Use RPM-family packages and the distribution's supported DNF or YUM repository manager. This is the actual implementation for Red Hat enterprise package family.

Incorrect Answers

A:

Disable repository signatures to make arbitrary packages compatible. This does not contribute a sound implementation or validation step for Red Hat enterprise package family. Debian-only package tools do not implement the host's supported RPM repository workflow.

C:

Rename a .deb archive to .rpm to convert its format. This does not contribute a sound implementation or validation step for Red Hat enterprise package family. Debian-only package tools do not implement the host's supported RPM repository workflow.

D:

Use apt-get and .deb files as the universal RHEL workflow. This does not contribute a sound implementation or validation step for Red Hat enterprise package family. Debian-only package tools do not implement the host's supported RPM repository workflow.

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