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 11

Question 100

A shell prompt omits the current directory and a user needs its absolute location. Which action BEST accomplishes the stated Linux task?

  1. Run `mkdir` to display the current directory.
  2. Use `cd ..` solely to print the original path without changing it.
  3. Use `passwd` to determine the working directory.
  4. Run `pwd` to display the current working directory.

Explanation

Correct Answer

D:

Run `pwd` to display the current working directory. Current-directory reporting is different from changing directories. To confirm completion, the shell prints the current directory path.

Incorrect Answers

A:

Run `mkdir` to display the current directory. It does not meet the requirement in this case: A shell prompt omits the current directory and a user needs its absolute location. Current-directory reporting is different from changing directories.

B:

This changes the workflow in the wrong way for pwd current directory.

C:

Use `passwd` to determine the working directory. It would not produce the expected result: The shell prints the current directory path. The named operation concerns pwd current directory.

Question 101

An administrator uses vi to edit a script on a minimal Linux system. Which action BEST accomplishes the stated Linux task?

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

Explanation

Correct Answer

D:

Enter insert mode with `i`, return with Esc and use `:wq` to write and quit. vi separates command mode and insert mode, so editing and saving require mode-aware commands. To confirm completion, the edited file persists on disk after vi exits.

Incorrect Answers

A:

Treat `dd` as vi's save-and-exit command. It would not produce the expected result: The edited file persists on disk after vi exits. The named operation concerns vi insert mode and write quit.

B:

Typing text in command mode can trigger actions rather than insert characters. This changes the workflow in the wrong way for vi insert mode and write quit.

C:

Use `:q!` expecting unsaved edits to be kept. It does not meet the requirement in this case: An administrator uses vi to edit a script on a minimal Linux system. vi separates command mode and insert mode, so editing and saving require mode-aware commands.

Question 102

An application file is owned by the wrong user and a privileged operator must correct it. Which action BEST accomplishes the stated Linux task?

  1. Rename the file to the user's account name.
  2. Use `chown username file` with required privileges.
  3. Run `chmod username file` as an ownership change.
  4. Edit `/etc/hosts` to change a filesystem owner.

Explanation

Correct Answer

B:

Use `chown username file` with required privileges. chown changes ownership metadata while chmod changes permission bits. To confirm completion, `ls -l` displays the intended owner after the change.

Incorrect Answers

A:

Rename the file to the user's account name. It does not meet the requirement in this case: An application file is owned by the wrong user and a privileged operator must correct it. chown changes ownership metadata while chmod changes permission bits.

C:

Run `chmod username file` as an ownership change. This changes the workflow in the wrong way for chown file ownership. Adjusting mode alone does not change the owning UID. For this task the appropriate operation is to use `chown username file` with required privileges.

D:

Edit `/etc/hosts` to change a filesystem owner. It would not produce the expected result: `ls -l` displays the intended owner after the change. The named operation concerns chown file ownership.

Question 103

A script receives `Quarterly Reports` as a single quoted argument and must preserve the space. Which action BEST accomplishes the stated Linux task?

  1. Pass `$1` unquoted and assume whitespace is always preserved.
  2. Replace every space in the file name before passing it.
  3. Surround arguments with single quotes that prevent the desired variable expansion.
  4. Expand variables and positional arguments in double quotes, for example `"$1"`.

Explanation

Correct Answer

D:

Expand variables and positional arguments in double quotes, for example `"$1"`. Quoted expansion prevents unintended splitting and globbing of argument values. To confirm completion, the intended pathname remains one argument when passed to another command.

Incorrect Answers

A:

This changes the workflow in the wrong way for Quoting script argument expansion.

B:

Replace every space in the file name before passing it. It would not produce the expected result: The intended pathname remains one argument when passed to another command. The named operation concerns Quoting script argument expansion.

C:

Surround arguments with single quotes that prevent the desired variable expansion. It does not meet the requirement in this case: A script receives `Quarterly Reports` as a single quoted argument and must preserve the space. Quoted expansion prevents unintended splitting and globbing of argument values.

Question 104

A student needs a copy of a directory and all nested files. Which action BEST accomplishes the stated Linux task?

  1. Use `cp project project-backup` expecting every nested directory on standard cp.
  2. Run `touch project-backup` to clone nested files.
  3. Use `cp -r project project-backup` to copy the directory tree.
  4. Use `mv` while expecting the source tree to remain.

Explanation

Correct Answer

C:

Use `cp -r project project-backup` to copy the directory tree. Recursive copying is required when copying a directory hierarchy with common cp implementations. To confirm completion, the destination includes the nested files while the original remains.

Incorrect Answers

A:

Use `cp project project-backup` expecting every nested directory on standard cp. This changes the workflow in the wrong way for cp -r directory trees. Copying only one file will not preserve child directories. For this task the appropriate operation is to use `cp -r project project-backup` to copy the directory tree.

B:

Run `touch project-backup` to clone nested files. It would not produce the expected result: The destination includes the nested files while the original remains. The named operation concerns cp -r directory trees.

D:

Use `mv` while expecting the source tree to remain. It does not meet the requirement in this case: A student needs a copy of a directory and all nested files. Recursive copying is required when copying a directory hierarchy with common cp implementations.

Question 105

A program unexpectedly receives group permission denied and the operator must inspect effective group memberships. Which action BEST accomplishes the stated Linux task?

  1. Read `/etc/resolv.conf` to identify the logged-in user's groups.
  2. Use `lsblk` to display UID and group information.
  3. Run `id` or `id username` to inspect UID, primary GID and groups.
  4. Assume `pwd` prints numerical UIDs.

Explanation

Correct Answer

C:

Run `id` or `id username` to inspect UID, primary GID and groups. Unix authorization uses numeric UIDs and GIDs as part of its identity model. To confirm completion, the output identifies the user's UID and group memberships.

Incorrect Answers

A:

Read `/etc/resolv.conf` to identify the logged-in user's groups. It does not meet the requirement in this case: A program unexpectedly receives group permission denied and the operator must inspect effective group memberships. Unix authorization uses numeric UIDs and GIDs as part of its identity model.

B:

This changes the workflow in the wrong way for id UID and group identity.

D:

Assume `pwd` prints numerical UIDs. It would not produce the expected result: The output identifies the user's UID and group memberships. The named operation concerns id UID and group identity.

Question 106

A directory named `old-empty` has no children and needs deletion. Which action BEST accomplishes the stated Linux task?

  1. Assume `rmdir` automatically erases every nested file.
  2. Use `rmdir old-empty` for the empty directory.
  3. Use `touch old-empty` to erase the directory.
  4. Run `cp old-empty` to remove the folder.

Explanation

Correct Answer

B:

Use `rmdir old-empty` for the empty directory. `rmdir` ordinarily removes empty directories, offering a narrower operation than recursive removal. To confirm completion, the empty directory is removed while nonempty directories are rejected.

Incorrect Answers

A:

Assume `rmdir` automatically erases every nested file. It does not meet the requirement in this case: A directory named `old-empty` has no children and needs deletion. `rmdir` ordinarily removes empty directories, offering a narrower operation than recursive removal.

C:

Use `touch old-empty` to erase the directory. This changes the workflow in the wrong way for rmdir versus nonempty directories. Trying to remove a populated tree this way fails rather than erasing its contents. For this task the appropriate operation is to use `rmdir old-empty` for the empty directory.

D:

Run `cp old-empty` to remove the folder. It would not produce the expected result: The empty directory is removed while nonempty directories are rejected. The named operation concerns rmdir versus nonempty directories.

Question 107

A Linux host must respond to incoming HTTP requests with a small website. Which action BEST accomplishes the stated Linux task?

  1. Configure Thunderbird as the website listener.
  2. Use LibreOffice Writer as a persistent web-server daemon.
  3. Expect a database-only installation to serve HTTPS pages automatically.
  4. Configure Apache HTTP Server or NGINX as the web-serving application.

Explanation

Correct Answer

D:

Configure Apache HTTP Server or NGINX as the web-serving application. Apache and NGINX provide HTTP server functions rather than graphical client browsing. To confirm completion, an HTTP request returns the configured page from the server.

Incorrect Answers

A:

Configure Thunderbird as the website listener. This changes the workflow in the wrong way for Web servers Apache and NGINX. An email client cannot directly serve the site's HTTP routes. For this task the appropriate operation is to configure Apache HTTP Server or NGINX as the web-serving application.

B:

Use LibreOffice Writer as a persistent web-server daemon. It does not meet the requirement in this case: A Linux host must respond to incoming HTTP requests with a small website. Apache and NGINX provide HTTP server functions rather than graphical client browsing.

C:

Expect a database-only installation to serve HTTPS pages automatically. It would not produce the expected result: An HTTP request returns the configured page from the server. The named operation concerns Web servers Apache and NGINX.

Question 108

A diagnostic file mixes `warning`, `Warning` and `WARNING`. Which action BEST accomplishes the stated Linux task?

  1. Run `grep -i warning file` for a case-insensitive match.
  2. Run `grep -v warning` expecting to ignore case.
  3. Use `sort -r` as grep's case-insensitive option.
  4. Rename all logfiles to lowercase to perform a search.

Explanation

Correct Answer

A:

Run `grep -i warning file` for a case-insensitive match. The `-i` option makes grep ignore case distinctions in matching. To confirm completion, lines with the term in different letter cases are selected.

Incorrect Answers

B:

Run `grep -v warning` expecting to ignore case. This changes the workflow in the wrong way for grep -i ignore case. A case-sensitive search can miss variants of a keyword. For this task the appropriate operation is to run `grep -i warning file` for a case-insensitive match.

C:

Use `sort -r` as grep's case-insensitive option. It does not meet the requirement in this case: A diagnostic file mixes `warning`, `Warning` and `WARNING`. The `-i` option makes grep ignore case distinctions in matching.

D:

Rename all logfiles to lowercase to perform a search. It would not produce the expected result: Lines with the term in different letter cases are selected. The named operation concerns grep -i ignore case.

Question 109

A user needs to view recently executed Bash commands. Which action BEST accomplishes the stated Linux task?

  1. Assume the shell's history automatically contains every process on the computer.
  2. Run `pwd` to list earlier commands.
  3. Run `history` in an interactive Bash shell.
  4. Use `touch` to print the command list.

Explanation

Correct Answer

C:

Run `history` in an interactive Bash shell. Shell history is separate from filesystem directory contents. To confirm completion, a numbered command list from the current shell history is displayed.

Incorrect Answers

A:

Assume the shell's history automatically contains every process on the computer. It would not produce the expected result: A numbered command list from the current shell history is displayed. The named operation concerns Shell history recall.

B:

Run `pwd` to list earlier commands. This changes the workflow in the wrong way for Shell history recall. Listing `/var/log` is not equivalent to the user's current history list. For this task the appropriate operation is to run `history` in an interactive Bash shell.

D:

Use `touch` to print the command list. It does not meet the requirement in this case: A user needs to view recently executed Bash commands. Shell history is separate from filesystem directory contents.

Question 110

A hardware diagnostic script reads attributes exposed by kernel subsystems. Which action BEST accomplishes the stated Linux task?

  1. Use `/dev/null` as a device attribute browser.
  2. Treat `/sys` as the default place for user photos.
  3. Inspect `/sys` for supported sysfs device attributes.
  4. Assume `/sys` contains only compressed backups.

Explanation

Correct Answer

C:

Inspect `/sys` for supported sysfs device attributes. sysfs exposes kernel device and subsystem objects through a virtual filesystem. To confirm completion, the queried device or subsystem attributes reflect the active kernel state.

Incorrect Answers

A:

Use `/dev/null` as a device attribute browser. It would not produce the expected result: The queried device or subsystem attributes reflect the active kernel state. The named operation concerns /sys device and kernel interfaces.

B:

Treat `/sys` as the default place for user photos. This changes the workflow in the wrong way for /sys device and kernel interfaces. Mistaking sysfs for a persistent user-data directory can corrupt an investigation. For this task the appropriate operation is to inspect `/sys` for supported sysfs device attributes.

D:

Assume `/sys` contains only compressed backups. It does not meet the requirement in this case: A hardware diagnostic script reads attributes exposed by kernel subsystems. sysfs exposes kernel device and subsystem objects through a virtual filesystem.

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