Practice Exams:

LPI 101-500 Dumps

EXAM: LPIC-1 Exam 101
Verified By Experts
Premium Bundle
$40.00
$59.97 $99.97

101-500 Premium Bundle


  • Premium File 120 Questions & Answers
  • Training Course 126 Lectures
  • Study Guide 442 Pages

LPI 101-500 Practice Test 30

Question 290

An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. What problem is the proposed administration change designed to prevent?

  1. Repeated hosts may remain counted multiple times and distort the operational summary.
  2. Unintended archive entries could overwrite system configuration and disrupt running applications.
  3. An unexpected program version can continue running or a working system command may be removed needlessly.
  4. Critical log categories may be omitted because the expression is interpreted as literal text.

Answer & Explanations

Correct answer: B

A.

This failure concerns another situation: An incident sample lists several recurring hostnames out of order and the team wants one entry per distinct name. The case here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The primary consequence is: Unintended archive entries could overwrite system configuration and disrupt running applications. The prevention is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

B.

Unintended archive entries could overwrite system configuration and disrupt running applications. This can follow from the shortcut: Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. The protective action is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. The case states: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production.

C.

This failure concerns another situation: A technician installs a program under /opt/tools but invoking its short name still runs an older executable in /usr/bin. The case here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The primary consequence is: Unintended archive entries could overwrite system configuration and disrupt running applications. The prevention is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

D.

This failure concerns another situation: A log review needs records containing either ERROR or FATAL but plain grep interprets a vertical-bar pattern literally. The case here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The primary consequence is: Unintended archive entries could overwrite system configuration and disrupt running applications. The prevention is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

Question 291

A script uses a star wildcard and unintentionally selects backup files as well as current reports. What is the most specific defensible operational intervention?

  1. Use history and man or the command's supported help output to inspect prior syntax and documented options without automatic execution.
  2. Use suitable beginning or end anchors in a grep expression to constrain the match to the required line position.
  3. Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.
  4. Use jobs to identify the suspended job and bg or fg to resume it in the intended terminal job state.

Answer & Explanations

Correct answer: C

A.

This action fits another scenario: A junior engineer repeatedly guesses unfamiliar command flags from memory despite local manual pages describing exact usage. The stated scenario is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The appropriate response here is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

B.

This action fits another scenario: An audit script seeks records that begin with a specific status but also matches unrelated words containing that token. The stated scenario is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The appropriate response here is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

C.

Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. The scenario is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The technical reason is: Pathname expansion occurs in the invoking shell and determines the command's actual argument list.

D.

This action fits another scenario: An interactive operator temporarily pauses a long-running text transformation and later needs it to continue. The stated scenario is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The appropriate response here is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

Question 292

A script uses a star wildcard and unintentionally selects backup files as well as current reports. The administrator proposes: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. Which causal relationship connects the diagnosis to the recommended step?

  1. A directory tree contains nested entries, which ordinary file-only copying does not traverse recursively.
  2. Pathname expansion occurs in the invoking shell and determines the command's actual argument list.
  3. A pipeline feeds one command's standard output into another command's standard input for sequential transformation.
  4. A delimiter-aware filter separates records into fields so a consistent column can be extracted deterministically.

Answer & Explanations

Correct answer: B

A.

This principle explains another scenario: A project directory contains nested configuration files and an engineer must duplicate its full tree to a test location. The situation here is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The controlling mechanism is: Pathname expansion occurs in the invoking shell and determines the command's actual argument list.

B.

Pathname expansion occurs in the invoking shell and determines the command's actual argument list. That is why the appropriate action is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. The stated problem is: A script uses a star wildcard and unintentionally selects backup files as well as current reports.

C.

This principle explains another scenario: An operator needs only matching error records from a command that emits hundreds of status lines. The situation here is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The controlling mechanism is: Pathname expansion occurs in the invoking shell and determines the command's actual argument list.

D.

This principle explains another scenario: A service report has colon-separated records and an analyst needs only the second field of each line. The situation here is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The controlling mechanism is: Pathname expansion occurs in the invoking shell and determines the command's actual argument list.

Question 293

A script uses a star wildcard and unintentionally selects backup files as well as current reports. The administrator proposes: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. Which observation proves the intended Linux behavior has been restored?

  1. Verify current mount state, inspect fstab and test a planned reboot or mount -a only when persistence is required.
  2. Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match.
  3. Compare before-and-after samples including lookalike hostnames and confirm only designated tokens change.
  4. Compare the terminal output and saved file for the same benign test run and confirm their content agrees.

Answer & Explanations

Correct answer: B

A.

This check is intended for another scenario: A technician successfully mounts a secondary data disk manually, but it disappears from the mount table after reboot. The case here is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The pertinent test is: Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match.

B.

Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match. This verifies the action: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. The test applies to: A script uses a star wildcard and unintentionally selects backup files as well as current reports.

C.

This check is intended for another scenario: A config sample needs a known old hostname replaced with a new one while unrelated text must remain unchanged. The case here is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The pertinent test is: Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match.

D.

This check is intended for another scenario: A deployment operator wants to watch command output live and also preserve an exact run log for review. The case here is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The pertinent test is: Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match.

Question 294

A script uses a star wildcard and unintentionally selects backup files as well as current reports. Which seemingly quick workaround should the administrator reject?

  1. Assign a strongly negative nice value to every batch task to make all background jobs finish quickly.
  2. Execute rm recursively on the whole parent path because its directory name includes archive.
  3. Assume the target command always interprets wildcard syntax instead of recognizing shell expansion.
  4. Pass an extended-regex pattern to basic grep without accounting for its different syntax.

Answer & Explanations

Correct answer: C

A.

This is a shortcut for another issue: A CPU-intensive indexer must run on a shared Linux server while interactive workloads retain reasonable responsiveness. The specific case is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. Here, avoid: Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. Instead: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

B.

This is a shortcut for another issue: A backup directory contains stale regular files and live subdirectories that must be retained. The specific case is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. Here, avoid: Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. Instead: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

C.

Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. This is unsafe in: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The likely result is: Extra files can be processed or deleted because the shell matched a wider set than intended. Instead: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

D.

This is a shortcut for another issue: A log review needs records containing either ERROR or FATAL but plain grep interprets a vertical-bar pattern literally. The specific case is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. Here, avoid: Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. Instead: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

Question 295

A script uses a star wildcard and unintentionally selects backup files as well as current reports. Which adverse result is most specifically linked to the uncorrected condition?

  1. Extra files can be processed or deleted because the shell matched a wider set than intended.
  2. Unrelated configuration can be erased and the obsolete directive may remain.
  3. Healthy processes may be stopped alongside the malfunctioning worker.
  4. Disk growth and maintenance tools may behave unpredictably because files are stored outside their intended hierarchy.

Answer & Explanations

Correct answer: A

A.

Extra files can be processed or deleted because the shell matched a wider set than intended. This can follow from the shortcut: Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. The protective action is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. The case states: A script uses a star wildcard and unintentionally selects backup files as well as current reports.

B.

This failure concerns another situation: An operator needs to locate one obsolete directive among many lines and remove it without affecting similar entries. The case here is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The primary consequence is: Extra files can be processed or deleted because the shell matched a wider set than intended. The prevention is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

C.

This failure concerns another situation: A host has several similarly named application processes and only one worker must be restarted. The case here is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The primary consequence is: Extra files can be processed or deleted because the shell matched a wider set than intended. The prevention is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

D.

This failure concerns another situation: An operator puts application logs inside /etc and later confuses runtime output with persistent configuration files. The case here is: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The primary consequence is: Extra files can be processed or deleted because the shell matched a wider set than intended. The prevention is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

Question 296

An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. What should the system administrator do first to resolve the stated issue?

  1. Use a recursive copy operation such as cp -R with reviewed source and destination paths.
  2. Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.
  3. Use dpkg query operations to inspect installed package status, versions and file ownership before making changes.
  4. Use renice with the verified target PID and permitted new nice value to adjust an existing process.

Answer & Explanations

Correct answer: B

A.

This action fits another scenario: A project directory contains nested configuration files and an engineer must duplicate its full tree to a test location. The stated scenario is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The appropriate response here is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

B.

Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. The scenario is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The technical reason is: Pathname expansion occurs in the invoking shell and determines the command's actual argument list.

C.

This action fits another scenario: A support engineer needs to identify the installed Debian package that owns a failing executable under /usr/bin. The stated scenario is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The appropriate response here is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

D.

This action fits another scenario: A running batch calculation should be deprioritized after users begin a time-critical interactive session. The stated scenario is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The appropriate response here is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

Question 297

An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The administrator proposes: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. Which Linux behavior makes the proposed remediation appropriate?

  1. vi distinguishes command navigation from text editing, and a quit-without-save command deliberately abandons edits.
  2. Pathname expansion occurs in the invoking shell and determines the command's actual argument list.
  3. The shell resolves command names through built-ins, functions and its search path rather than choosing the newest installed binary.
  4. A substitution expression transforms matching text; careless patterns can match more data than the intended literal token.

Answer & Explanations

Correct answer: B

A.

This principle explains another scenario: A new administrator can navigate a configuration file in vi but typing does not insert text because normal mode is active. The situation here is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The controlling mechanism is: Pathname expansion occurs in the invoking shell and determines the command's actual argument list.

B.

Pathname expansion occurs in the invoking shell and determines the command's actual argument list. That is why the appropriate action is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. The stated problem is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first.

C.

This principle explains another scenario: A technician installs a program under /opt/tools but invoking its short name still runs an older executable in /usr/bin. The situation here is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The controlling mechanism is: Pathname expansion occurs in the invoking shell and determines the command's actual argument list.

D.

This principle explains another scenario: A config sample needs a known old hostname replaced with a new one while unrelated text must remain unchanged. The situation here is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The controlling mechanism is: Pathname expansion occurs in the invoking shell and determines the command's actual argument list.

Question 298

An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The administrator proposes: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. What acceptance check best distinguishes success from an unchanged issue?

  1. Test separate lines containing each keyword and unrelated words, verifying both expected matches and exclusions.
  2. Generate one successful output line and one intentional error and confirm each appears only in its chosen file.
  3. Create a sample filename with a space and newline and verify the consumer receives exactly one correct argument.
  4. Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match.

Answer & Explanations

Correct answer: D

A.

This check is intended for another scenario: A log review needs records containing either ERROR or FATAL but plain grep interprets a vertical-bar pattern literally. The case here is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The pertinent test is: Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match.

B.

This check is intended for another scenario: A nightly job must save normal command output while leaving failures visible in a separate diagnostic log. The case here is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The pertinent test is: Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match.

C.

This check is intended for another scenario: A cleanup command consumes paths emitted by find, but some names contain spaces and newlines. The case here is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The pertinent test is: Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match.

D.

Display the expanded arguments for test filenames containing similar prefixes and confirm only intended paths match. This verifies the action: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. The test applies to: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first.

Question 299

An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. What tempting response would create an avoidable operational hazard?

  1. Send SIGKILL to every process with a matching substring without checking ownership or workload scope.
  2. Assume the target command always interprets wildcard syntax instead of recognizing shell expansion.
  3. Start a second identical job because the original stopped job is mistaken for a terminated process.
  4. Detach the storage device physically while an active process still writes to the filesystem.

Answer & Explanations

Correct answer: B

A.

This is a shortcut for another issue: A host has several similarly named application processes and only one worker must be restarted. The specific case is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. Here, avoid: Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. Instead: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

B.

Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. This is unsafe in: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The likely result is: Extra files can be processed or deleted because the shell matched a wider set than intended. Instead: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

C.

This is a shortcut for another issue: An interactive operator temporarily pauses a long-running text transformation and later needs it to continue. The specific case is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. Here, avoid: Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. Instead: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

D.

This is a shortcut for another issue: An administrator receives device-busy when trying to unmount a USB backup disk that a shell session is currently using. The specific case is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. Here, avoid: Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. Instead: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

Question 300

An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. Which failure can follow if this control is ignored?

  1. Child programs may run with missing configuration even though the parent shell displays the variable correctly.
  2. Extra files can be processed or deleted because the shell matched a wider set than intended.
  3. The report may contain incorrect fields or silently omit empty values from its input.
  4. The planned batch job may terminate early and leave incomplete output.

Answer & Explanations

Correct answer: B

A.

This failure concerns another situation: A shell script starts a subprocess that cannot see a value assigned earlier in an interactive Bash session. The case here is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The primary consequence is: Extra files can be processed or deleted because the shell matched a wider set than intended. The prevention is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

B.

Extra files can be processed or deleted because the shell matched a wider set than intended. This can follow from the shortcut: Assume the target command always interprets wildcard syntax instead of recognizing shell expansion. The protective action is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments. The case states: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first.

C.

This failure concerns another situation: A service report has colon-separated records and an analyst needs only the second field of each line. The case here is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The primary consequence is: Extra files can be processed or deleted because the shell matched a wider set than intended. The prevention is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

D.

This failure concerns another situation: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The case here is: An analyst expects a command to receive a literal asterisk but the shell expands it into filenames first. The primary consequence is: Extra files can be processed or deleted because the shell matched a wider set than intended. The prevention is: Choose deliberate Bash glob patterns and quote characters that must be treated literally before passing arguments.

LPIC-1 Exam 101 (101-500) Practice Tests