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 17

Question 160

A grep exercise distinguishes `a*` in regular expressions from globbing. Which command or configuration decision is MOST appropriate?

  1. Use `grep 'c*t'` expecting exactly one arbitrary middle character.
  2. Assume `.` in a regex always means a literal dot.
  3. Use a quoted regular expression with `.` for any one character, such as `grep 'c.t' file`.
  4. Run `sort file` or pipe records into sort.

Explanation

Correct Answer

C:

Success would be shown when words with any single character in the middle are matched.

Incorrect Answers

A:

Confusing regex star with shell glob star changes the intended matching semantics. For the specified situation, this is not equivalent to use a quoted regular expression with `.` for any one character, such as `grep 'c.t' file`.

B:

Confusing regex star with shell glob star changes the intended matching semantics. Assume `.` in a regex always means a literal dot.

D:

Run `sort file` or pipe records into sort. This instead targets sort text records, not the specific Regular-expression dot and repetition requirement in the question. Words with any single character in the middle are matched.

Question 161

A class asks which simple command displays a list of earlier interactive commands. Which command or configuration decision is MOST appropriate?

  1. Run `pwd` to list earlier commands.
  2. Use `touch` to print the command list.
  3. Run `history` in an interactive Bash shell.
  4. Add the executable directory to `PATH` or invoke the executable by its explicit path.

Explanation

Correct Answer

C:

Run `history` in an interactive Bash shell. The same Shell history recall principle applies in this second case. Shell history is separate from filesystem directory contents. Success would be shown when a numbered command list from the current shell history is displayed.

Incorrect Answers

A:

Listing `/var/log` is not equivalent to the user's current history list. For the specified situation, this is not equivalent to run `history` in an interactive Bash shell.

B:

For the specified situation, this is not equivalent to run `history` in an interactive Bash shell.

D:

Add the executable directory to `PATH` or invoke the executable by its explicit path. This instead targets PATH and command discovery, not the specific Shell history recall requirement in the question. A numbered command list from the current shell history is displayed.

Question 162

A shell prompt is deep inside a project and the operator wants a home-relative path. Which command or configuration decision is MOST appropriate?

  1. Use a path beginning with `/` when referencing an absolute location.
  2. Use `cd /` as the user's home directory on every system.
  3. Use `cd ~` or bare `cd` to return to the current user's home.
  4. Treat `~` as the current directory marker.

Explanation

Correct Answer

C:

Use `cd ~` or bare `cd` to return to the current user's home. The same Home directory shorthand principle applies in this second case. Shell tilde expansion and bare `cd` provide convenient home-directory navigation. Success would be shown when `pwd` shows the current user's configured home directory.

Incorrect Answers

A:

Use a path beginning with `/` when referencing an absolute location. This instead targets Absolute filesystem paths, not the specific Home directory shorthand requirement in the question. `pwd` shows the current user's configured home directory.

B:

Use `cd /` as the user's home directory on every system. For the specified situation, this is not equivalent to use `cd ~` or bare `cd` to return to the current user's home. Confusing home with `/` changes the destination.

D:

Treat `~` as the current directory marker. For the specified situation, this is not equivalent to use `cd ~` or bare `cd` to return to the current user's home. Confusing home with `/` changes the destination.

Question 163

An administrator needs to make default creation modes more restrictive in a shell session. Which command or configuration decision is MOST appropriate?

  1. Configure a suitable `umask` to clear unwanted default permissions.
  2. Ensure appropriate execute/search permission on each parent directory for the accessing class.
  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

A:

Configure a suitable `umask` to clear unwanted default permissions. The same umask default permission reduction principle applies in this second case. umask removes permission bits from creation defaults; it does not add execute to regular files. Success would be shown when new files and directories have effective modes reduced by the specified mask.

Incorrect Answers

B:

Ensure appropriate execute/search permission on each parent directory for the accessing class. This instead targets Directory traversal execute permission, not the specific umask default permission reduction requirement in the question. New files and directories have effective modes reduced by the specified mask.

C:

Use umask to grant automatic execute permission to every file. For the specified situation, this is not equivalent to configure a suitable `umask` to clear unwanted default permissions. Misunderstanding the mask may expose newly created data.

D:

Set umask 000 and expect it to remove all public rights. For the specified situation, this is not equivalent to configure a suitable `umask` to clear unwanted default permissions. Misunderstanding the mask may expose newly created data.

Question 164

A user primarily uses graphical applications but sometimes needs detailed system control. Which command or configuration decision is MOST appropriate?

  1. Assume Linux prohibits a desktop graphical interface.
  2. Review the applicable Linux distribution's open-source licenses alongside proprietary OS terms.
  3. Use a browser tab as the operating-system shell.
  4. Use the command line for scriptable operations while keeping a GUI for interactive work where useful.

Explanation

Correct Answer

D:

Use the command line for scriptable operations while keeping a GUI for interactive work where useful. The same GUI and command-line tradeoffs principle applies in this second case. Linux can provide both graphical and text interfaces suited to different tasks. Success would be shown when repeated operations can run consistently from shell commands.

Incorrect Answers

A:

Replacing all shell automation with manually repeated clicks can be error-prone. For the specified situation, this is not equivalent to use the command line for scriptable operations while keeping a GUI for interactive work where useful.

B:

Review the applicable Linux distribution's open-source licenses alongside proprietary OS terms. This instead targets Linux and proprietary OS licensing models, not the specific GUI and command-line tradeoffs requirement in the question. Repeated operations can run consistently from shell commands.

C:

For the specified situation, this is not equivalent to use the command line for scriptable operations while keeping a GUI for interactive work where useful.

Question 165

A colleague asks how to restore a file ending `.gz` to ordinary text. Which command or configuration decision is MOST appropriate?

  1. Run `tar -czf project.tar.gz project/` to create gzip-compressed tar.
  2. Rename `.txt` to `.gz` to compress it.
  3. Use `tar -xf` directly against arbitrary gzip data without an archive.
  4. Compress with `gzip` and decompress with `gunzip` for the single file.

Explanation

Correct Answer

D:

Compress with `gzip` and decompress with `gunzip` for the single file. The same gzip compression and gunzip principle applies in this second case. gzip compresses a stream or file and does not by itself preserve multiple filenames in one archive. Success would be shown when a gzip file can be decompressed to recover its original bytes.

Incorrect Answers

A:

A gzip file can be decompressed to recover its original bytes.

B:

Rename `.txt` to `.gz` to compress it. For the specified situation, this is not equivalent to compress with `gzip` and decompress with `gunzip` for the single file. Treating gzip alone as a directory archiver is incorrect.

C:

Use `tar -xf` directly against arbitrary gzip data without an archive. For the specified situation, this is not equivalent to compress with `gzip` and decompress with `gunzip` for the single file. Treating gzip alone as a directory archiver is incorrect.

Question 166

A technician wants to find paths containing a known filename and accepts index freshness limitations. Which command or configuration decision is MOST appropriate?

  1. Run `grep filename` without specifying searchable files.
  2. Assume locate always searches live disk bytes immediately.
  3. Run `man ls` to open the appropriate manual page.
  4. Use `locate filename` after ensuring its filename index is available and updated.

Explanation

Correct Answer

D:

Use `locate filename` after ensuring its filename index is available and updated. The same locate database lookup principle applies in this second case. `locate` searches a prebuilt file-name index rather than necessarily scanning the live filesystem. Success would be shown when the command returns matching paths from its filename database.

Incorrect Answers

A:

Run `grep filename` without specifying searchable files. For the specified situation, this is not equivalent to use `locate filename` after ensuring its filename index is available and updated. Recently created files may be missing until the index is refreshed.

B:

Assume locate always searches live disk bytes immediately. For the specified situation, this is not equivalent to use `locate filename` after ensuring its filename index is available and updated. Recently created files may be missing until the index is refreshed.

C:

Run `man ls` to open the appropriate manual page. This instead targets man pages and sections, not the specific locate database lookup requirement in the question. The command returns matching paths from its filename database.

Question 167

A team is deciding whether daily applications should run with administrative privileges. Which command or configuration decision is MOST appropriate?

  1. Use `who` or `w` for current sessions and `last` for login history where recorded.
  2. Disable permissions on the system's configuration files.
  3. Use a standard account for routine work and elevate only for authorized administrative tasks.
  4. Give every new user UID 0 to avoid permission prompts.

Explanation

Correct Answer

C:

Use a standard account for routine work and elevate only for authorized administrative tasks. The same Root versus ordinary users principle applies in this second case. The root account has broad administrative power while ordinary users normally have restricted rights. Success would be shown when ordinary file access is limited while privileged operations require explicit authorization.

Incorrect Answers

A:

Ordinary file access is limited while privileged operations require explicit authorization.

B:

Running all applications as root increases the impact of mistakes and compromise. For the specified situation, this is not equivalent to use a standard account for routine work and elevate only for authorized administrative tasks.

D:

Running all applications as root increases the impact of mistakes and compromise. Give every new user UID 0 to avoid permission prompts.

Question 168

A beginner asks how to display used and available physical memory and swap. Which command or configuration decision is MOST appropriate?

  1. Run `df` as the direct summary of physical RAM.
  2. Run `free -h` or `free` to inspect memory and swap totals.
  3. Use `grep /etc/passwd` to measure memory.
  4. Recognize `/dev` as the directory containing device nodes and related special files.

Explanation

Correct Answer

B:

Run `free -h` or `free` to inspect memory and swap totals. The same free memory statistics principle applies in this second case. free summarizes system memory utilization rather than listing process names. Success would be shown when the output reports memory and swap figures in the selected units.

Incorrect Answers

A:

A disk listing cannot distinguish RAM from swap usage. For the specified situation, this is not equivalent to run `free -h` or `free` to inspect memory and swap totals.

C:

For the specified situation, this is not equivalent to run `free -h` or `free` to inspect memory and swap totals.

D:

Recognize `/dev` as the directory containing device nodes and related special files. This instead targets /dev device nodes, not the specific free memory statistics requirement in the question. The output reports memory and swap figures in the selected units.

Question 169

An administrator wants a new group with an assigned numeric GID. Which command or configuration decision is MOST appropriate?

  1. Use `usermod -aG project username` or an approved equivalent to append group membership.
  2. Run `useradd groupname` expecting only a group record.
  3. Run `groupadd groupname` with appropriate privileges.
  4. Make `/etc/group` world-writable so anyone can create groups.

Explanation

Correct Answer

C:

Run `groupadd groupname` with appropriate privileges. The same groupadd new group principle applies in this second case. Unix groups provide a way to assign shared access to users and files. Success would be shown when the group appears in the group database with an available GID.

Incorrect Answers

A:

Use `usermod -aG project username` or an approved equivalent to append group membership. This instead targets Supplementary group membership, not the specific groupadd new group requirement in the question. The group appears in the group database with an available GID.

B:

Creating a similarly named directory does not create group membership or identity. For the specified situation, this is not equivalent to run `groupadd groupname` with appropriate privileges.

D:

For the specified situation, this is not equivalent to run `groupadd groupname` with appropriate privileges.

Question 170

A team evaluates SUSE Linux Enterprise and asks how it relates to openSUSE. Which command or configuration decision is MOST appropriate?

  1. Assume openSUSE is a Windows kernel implementation.
  2. Use Ubuntu LTS release dates as SUSE vendor support commitments.
  3. Recognize openSUSE and SUSE as related Linux distributions with their supported RPM-based package tooling.
  4. Use RPM-family packages and the distribution's supported DNF or YUM repository manager.

Explanation

Correct Answer

C:

SUSE Enterprise and openSUSE are related Linux distributions but have different release and support models.

Incorrect Answers

A:

Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes. For the specified situation, this is not equivalent to recognize openSUSE and SUSE as related Linux distributions with their supported RPM-based package tooling.

B:

Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes. Use Ubuntu LTS release dates as SUSE vendor support commitments.

D:

Use RPM-family packages and the distribution's supported DNF or YUM repository manager. This instead targets Red Hat enterprise package family, not the specific SUSE and openSUSE distributions requirement in the question. The selected system's package-management commands and repositories correspond to its SUSE variant.

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