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 48

Question 470

A restore task must unpack an existing tarball into a chosen directory. Which underlying Linux principle BEST explains the correct procedure for Extracting a tar archive?

  1. A shebang identifies the interpreter used when the operating system directly executes a script.
  2. `tar -x` extracts an archive and should be used with a supplied file.
  3. ZIP combines archiving and compression in a widely supported container format.
  4. gzip compresses a stream or file and does not by itself preserve multiple filenames in one archive.

Explanation

Correct Answer

B:

`tar -x` extracts an archive and should be used with a supplied file. The procedure it justifies is to run `tar -xf backup.tar` in a suitable destination directory. This also allows checking that the files recorded in the tar archive appear after extraction.

Incorrect Answers

A:

A shebang identifies the interpreter used when the operating system directly executes a script. It describes Shebang shell interpreter, not the behavior that controls this Extracting a tar archive case. Running the creation operation on an existing archive does not restore its contents.

C:

ZIP combines archiving and compression in a widely supported container format. It describes ZIP archives and unzip, not the behavior that controls this Extracting a tar archive case. Running the creation operation on an existing archive does not restore its contents.

D:

Gzip compresses a stream or file and does not by itself preserve multiple filenames in one archive. It describes gzip compression and gunzip, not the behavior that controls this Extracting a tar archive case. Running the creation operation on an existing archive does not restore its contents.

Question 471

A report generator must place a command's output inside a message. Which underlying Linux principle BEST explains the correct procedure for Command substitution in scripts?

  1. A pathname glob can supply the loop's items while quoted variable expansion preserves each filename.
  2. `$1` is Bash's first positional parameter, while `$0` is the script name.
  3. `$()` substitutes a command's output into the surrounding command context.
  4. Shell redirection changes file-writing behavior before a program processes its arguments.

Explanation

Correct Answer

C:

`$()` substitutes a command's output into the surrounding command context. The procedure it justifies is to use command substitution such as `stamp=$(date)` and quote the result when needed. This also allows checking that the variable contains the command's stdout value.

Incorrect Answers

A:

A pathname glob can supply the loop's items while quoted variable expansion preserves each filename. It describes Loop over matching filenames, not the behavior that controls this Command substitution in scripts case. Writing a command name as a string does not execute it.

B:

`$1` is Bash's first positional parameter, while `$0` is the script name. It describes Positional command-line arguments, not the behavior that controls this Command substitution in scripts case. Writing a command name as a string does not execute it.

D:

Shell redirection changes file-writing behavior before a program processes its arguments. It describes Redirecting output and append, not the behavior that controls this Command substitution in scripts case. Writing a command name as a string does not execute it.

Question 472

A student asks why `count = 3` produces an error in Bash. Which underlying Linux principle BEST explains the correct procedure for Bash variable assignment syntax?

  1. The tar `-z` option requests gzip compression while `-c` creates the archive.
  2. Spaces around `=` split a Bash assignment into command words.
  3. nano provides terminal-based text editing with on-screen shortcut hints.
  4. A `for` loop assigns successive list items to the loop variable.

Explanation

Correct Answer

B:

Spaces around `=` split a Bash assignment into command words. The procedure it justifies is to write Bash scalar assignments without spaces around `=`, such as `count=3`. This also allows checking that expansion of the variable returns the intended assigned value.

Incorrect Answers

A:

The tar `-z` option requests gzip compression while `-c` creates the archive. It describes tar gzip combined compression, not the behavior that controls this Bash variable assignment syntax case. Incorrect assignment syntax can attempt to run a command named after the variable.

C:

Nano provides terminal-based text editing with on-screen shortcut hints. It describes nano editor save and quit, not the behavior that controls this Bash variable assignment syntax case. Incorrect assignment syntax can attempt to run a command named after the variable.

D:

A `for` loop assigns successive list items to the loop variable. It describes Loop over fixed items, not the behavior that controls this Bash variable assignment syntax case. Incorrect assignment syntax can attempt to run a command named after the variable.

Question 473

An authorized user wants to change their own account password. Which underlying Linux principle BEST explains the correct procedure for passwd setting account password?

  1. passwd changes account authentication credentials through supported account-management interfaces.
  2. useradd creates a local account; additional options or distribution defaults control home and shell setup.
  3. Login-session reporting differs from process snapshots and account databases.
  4. `/etc/skel` is a template directory for new home directories, not a live shared home.

Explanation

Correct Answer

A:

Passwd changes account authentication credentials through supported account-management interfaces. The procedure it justifies is to use `passwd username` as an administrator or `passwd` for the current account. This also allows checking that authentication accepts the updated password according to the system's policies.

Incorrect Answers

B:

Useradd creates a local account; additional options or distribution defaults control home and shell setup. It describes useradd new local account, not the behavior that controls this passwd setting account password case. Creating a user does not necessarily provision a usable password login by itself.

C:

Login-session reporting differs from process snapshots and account databases. It describes who w and last login activity, not the behavior that controls this passwd setting account password case. Creating a user does not necessarily provision a usable password login by itself.

D:

`/etc/skel` is a template directory for new home directories, not a live shared home. It describes /etc/skel new home templates, not the behavior that controls this passwd setting account password case. Creating a user does not necessarily provision a usable password login by itself.

Question 474

A team compares `echo '$USER'` with `echo "$USER"` in Bash. Which underlying Linux principle BEST explains the correct procedure for Single versus double shell quotes?

  1. Recursive listing traverses nested directory contents rather than only a single level.
  2. Bash single quotes inhibit parameter expansion while double quotes generally permit it.
  3. PATH is a colon-separated list of directories the shell searches for command names.
  4. Export marks shell variables for inclusion in child-process environments.

Explanation

Correct Answer

B:

Bash single quotes inhibit parameter expansion while double quotes generally permit it. The procedure it justifies is to use single quotes for literal `$` text and double quotes when variable expansion is wanted. This also allows checking that the single-quoted command prints `$USER` or `$HOME` literally.

Incorrect Answers

A:

Recursive listing traverses nested directory contents rather than only a single level. It describes Recursive directory listings, not the behavior that controls this Single versus double shell quotes case. Quoting incorrectly can change text into expanded values.

C:

PATH is a colon-separated list of directories the shell searches for command names. It describes PATH and command discovery, not the behavior that controls this Single versus double shell quotes case. Quoting incorrectly can change text into expanded values.

D:

Export marks shell variables for inclusion in child-process environments. It describes Exported environment variables, not the behavior that controls this Single versus double shell quotes case. Quoting incorrectly can change text into expanded values.

Question 475

A student wants a free graphical application to edit pixel-based image files. Which underlying Linux principle BEST explains the correct procedure for GIMP raster image editing?

  1. LibreOffice is an open-source productivity suite with document, spreadsheet and presentation tools.
  2. Raspberry Pi OS is a Debian-derived Linux distribution built for supported Raspberry Pi hardware.
  3. GIMP edits raster images and is different from a database or spreadsheet program.
  4. Firefox is a web browser, not a package repository or command shell.

Explanation

Correct Answer

C:

GIMP edits raster images and is different from a database or spreadsheet program. The procedure it justifies is to use GIMP for raster editing and export the required image format. This also allows checking that the edited image is saved in the requested raster format with the expected changes.

Incorrect Answers

A:

LibreOffice is an open-source productivity suite with document, spreadsheet and presentation tools. It describes LibreOffice document suite, not the behavior that controls this GIMP raster image editing case. Selecting a document viewer does not provide the required image-editing tools.

B:

Raspberry Pi OS is a Debian-derived Linux distribution built for supported Raspberry Pi hardware. It describes Raspberry Pi Linux deployment, not the behavior that controls this GIMP raster image editing case. Selecting a document viewer does not provide the required image-editing tools.

D:

Firefox is a web browser, not a package repository or command shell. It describes Firefox web browsing, not the behavior that controls this GIMP raster image editing case. Selecting a document viewer does not provide the required image-editing tools.

Question 476

A team evaluates SUSE Linux Enterprise and asks how it relates to openSUSE. Which underlying Linux principle BEST explains the correct procedure for SUSE and openSUSE distributions?

  1. Linux distributions can run as guest systems in virtualized cloud infrastructure.
  2. Unique secrets reduce credential-reuse exposure; MFA adds an independent verification factor.
  3. Debian and Ubuntu share a Debian-derived package format and APT ecosystem.
  4. SUSE Enterprise and openSUSE are related Linux distributions but have different release and support models.

Explanation

Correct Answer

D:

SUSE Enterprise and openSUSE are related Linux distributions but have different release and support models. The procedure it justifies is to recognize openSUSE and SUSE as related Linux distributions with their supported RPM-based package tooling. This also allows checking that the selected system's package-management commands and repositories correspond to its SUSE variant.

Incorrect Answers

A:

Linux distributions can run as guest systems in virtualized cloud infrastructure. It describes Linux in hosted cloud systems, not the behavior that controls this SUSE and openSUSE distributions case. Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes.

B:

Unique secrets reduce credential-reuse exposure; MFA adds an independent verification factor. It describes Password manager and multifactor authentication, not the behavior that controls this SUSE and openSUSE distributions case. Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes.

C:

Debian and Ubuntu share a Debian-derived package format and APT ecosystem. It describes Debian-derived package family, not the behavior that controls this SUSE and openSUSE distributions case. Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes.

Question 477

A class is testing shell commands stored in a `.sh` file. Which underlying Linux principle BEST explains the correct procedure for Script invocation via bash?

  1. `tar -x` extracts an archive and should be used with a supplied file.
  2. Explicit interpreter invocation does not require the script file's executable bit, only readable content.
  3. `$1` is Bash's first positional parameter, while `$0` is the script name.
  4. Bash arithmetic expansion evaluates integer expressions rather than concatenating text.

Explanation

Correct Answer

B:

Explicit interpreter invocation does not require the script file's executable bit, only readable content. The procedure it justifies is to invoke `bash script.sh` to have Bash read the script when permitted. This also allows checking that the Bash process executes the script contents.

Incorrect Answers

A:

`tar -x` extracts an archive and should be used with a supplied file. It describes Extracting a tar archive, not the behavior that controls this Script invocation via bash case. Confusing direct `./script.sh` execution with `bash script.sh` changes permission requirements.

C:

`$1` is Bash's first positional parameter, while `$0` is the script name. It describes Positional command-line arguments, not the behavior that controls this Script invocation via bash case. Confusing direct `./script.sh` execution with `bash script.sh` changes permission requirements.

D:

Bash arithmetic expansion evaluates integer expressions rather than concatenating text. It describes Bash arithmetic expansion, not the behavior that controls this Script invocation via bash case. Confusing direct `./script.sh` execution with `bash script.sh` changes permission requirements.

Question 478

A script tests where its interactive operator is currently working. Which underlying Linux principle BEST explains the correct procedure for pwd current directory?

  1. Current-directory reporting is different from changing directories.
  2. Shell globbing occurs before the command runs and quoting controls it.
  3. Leading `/` anchors a pathname at the filesystem root.
  4. Recursive listing traverses nested directory contents rather than only a single level.

Explanation

Correct Answer

A:

Current-directory reporting is different from changing directories. The procedure it justifies is to run `pwd` to display the current working directory. This also allows checking that the shell prints the current directory path.

Incorrect Answers

B:

Shell globbing occurs before the command runs and quoting controls it. It describes Globbing versus literal pattern, not the behavior that controls this pwd current directory case. Confusing `pwd` with `cd` can move the shell rather than reporting its location.

C:

Leading `/` anchors a pathname at the filesystem root. It describes Absolute filesystem paths, not the behavior that controls this pwd current directory case. Confusing `pwd` with `cd` can move the shell rather than reporting its location.

D:

Recursive listing traverses nested directory contents rather than only a single level. It describes Recursive directory listings, not the behavior that controls this pwd current directory case. Confusing `pwd` with `cd` can move the shell rather than reporting its location.

Question 479

A user launches a script that must inherit a configured shell variable. Which underlying Linux principle BEST explains the correct procedure for Exported environment variables?

  1. Shell tilde expansion and bare `cd` provide convenient home-directory navigation.
  2. Bash single quotes inhibit parameter expansion while double quotes generally permit it.
  3. Unquoted variable names in an echo command are literal text, while `$name` expands a shell parameter.
  4. Export marks shell variables for inclusion in child-process environments.

Explanation

Correct Answer

D:

Export marks shell variables for inclusion in child-process environments. The procedure it justifies is to run `export API_MODE=test` or export an existing variable before launching the child. This also allows checking that a child process displays the inherited value from its environment.

Incorrect Answers

A:

Shell tilde expansion and bare `cd` provide convenient home-directory navigation. It describes Home directory shorthand, not the behavior that controls this Exported environment variables case. A nonexported shell-only variable is not automatically inherited by child programs.

B:

Bash single quotes inhibit parameter expansion while double quotes generally permit it. It describes Single versus double shell quotes, not the behavior that controls this Exported environment variables case. A nonexported shell-only variable is not automatically inherited by child programs.

C:

Unquoted variable names in an echo command are literal text, while `$name` expands a shell parameter. It describes echo and shell variables, not the behavior that controls this Exported environment variables case. A nonexported shell-only variable is not automatically inherited by child programs.

Question 480

A student needs to match either one of two literal characters in the middle of a word. Which underlying Linux principle BEST explains the correct procedure for Basic regular-expression character classes?

  1. `|` passes one command's standard output to the next command's standard input.
  2. A regex bracket expression denotes a one-character class rather than an entire word choice.
  3. xz is a specific compressed-stream format and requires a matching decompression algorithm.
  4. `wc -l` counts newline characters rather than all byte or word units.

Explanation

Correct Answer

B:

A regex bracket expression denotes a one-character class rather than an entire word choice. The procedure it justifies is to use a bracket expression such as `grep 'c[ao]t' file`. This also allows checking that lines containing either indicated single-character alternative match.

Incorrect Answers

A:

`|` passes one command's standard output to the next command's standard input. It describes Pipes connecting commands, not the behavior that controls this Basic regular-expression character classes case. Literal unquoted brackets or the wrong pattern can change the match set.

C:

Xz is a specific compressed-stream format and requires a matching decompression algorithm. It describes xz compression tools, not the behavior that controls this Basic regular-expression character classes case. Literal unquoted brackets or the wrong pattern can change the match set.

D:

`wc -l` counts newline characters rather than all byte or word units. It describes wc line counting, not the behavior that controls this Basic regular-expression character classes case. Literal unquoted brackets or the wrong pattern can change the match set.

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