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 35

Question 340

An inventory script passes newline-separated filenames through xargs and accidentally splits one legitimate name. What problem is the proposed administration change designed to prevent?

  1. Unrelated configuration can be erased and the obsolete directive may remain.
  2. A failure may be missed by operators because its error stream was never captured where expected.
  3. A command can receive partial filenames and act on unintended filesystem objects.
  4. Child programs may run with missing configuration even though the parent shell displays the variable correctly.

Answer & Explanations

Correct answer: C

A.

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: An inventory script passes newline-separated filenames through xargs and accidentally splits one legitimate name. The primary consequence is: A command can receive partial filenames and act on unintended filesystem objects. The prevention is: Use a null-delimited find output with xargs -0 when passing arbitrary filenames to another command.

B.

This failure concerns another situation: A nightly job must save normal command output while leaving failures visible in a separate diagnostic log. The case here is: An inventory script passes newline-separated filenames through xargs and accidentally splits one legitimate name. The primary consequence is: A command can receive partial filenames and act on unintended filesystem objects. The prevention is: Use a null-delimited find output with xargs -0 when passing arbitrary filenames to another command.

C.

A command can receive partial filenames and act on unintended filesystem objects. This can follow from the shortcut: Pipe newline-delimited filenames through ordinary xargs and assume each line always maps to a complete safe path. The protective action is: Use a null-delimited find output with xargs -0 when passing arbitrary filenames to another command. The case states: An inventory script passes newline-separated filenames through xargs and accidentally splits one legitimate name.

D.

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 inventory script passes newline-separated filenames through xargs and accidentally splits one legitimate name. The primary consequence is: A command can receive partial filenames and act on unintended filesystem objects. The prevention is: Use a null-delimited find output with xargs -0 when passing arbitrary filenames to another command.

Question 341

A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. What is the most specific defensible operational intervention?

  1. Use a controlled systemd rescue or emergency target for diagnosis and distinguish it from changes to the persistent default.
  2. Use suitable beginning or end anchors in a grep expression to constrain the match to the required line position.
  3. Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.
  4. Use the supported yum or dnf transaction workflow to inspect dependencies and apply the reviewed package change.

Answer & Explanations

Correct answer: C

A.

This action fits another scenario: A service fault prevents a normal graphical startup and an operator needs a maintenance shell for a single boot. The stated scenario is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The appropriate response here is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

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 remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The appropriate response here is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

C.

Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. The scenario is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The technical reason is: A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

D.

This action fits another scenario: A RHEL-like system requires a security update with dependent libraries and the engineer has approved repositories available. The stated scenario is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The appropriate response here is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

Question 342

A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The administrator proposes: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. Which causal relationship connects the diagnosis to the recommended step?

  1. Signals target specific process identities; an ambiguous name-based selection can affect several different workloads.
  2. find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.
  3. Unexported shell variables remain local to the shell; exported variables are copied into the environment inherited by new processes.
  4. A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

Answer & Explanations

Correct answer: D

A.

This principle explains another scenario: A host has several similarly named application processes and only one worker must be restarted. The situation here is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The controlling mechanism is: A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

B.

This principle explains another scenario: A backup directory contains stale regular files and live subdirectories that must be retained. The situation here is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The controlling mechanism is: A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

C.

This principle explains another scenario: A shell script starts a subprocess that cannot see a value assigned earlier in an interactive Bash session. The situation here is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The controlling mechanism is: A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

D.

A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate. That is why the appropriate action is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. The stated problem is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method.

Question 343

A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The administrator proposes: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. Which observation proves the intended Linux behavior has been restored?

  1. Disconnect a test session and confirm the job PID remains active and produces its expected completion log.
  2. Search in a copy, remove the verified line, save and compare the resulting document with the expected change.
  3. Compare the package version and ownership output with the targeted executable and verify its installation status.
  4. List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.

Answer & Explanations

Correct answer: A

A.

Disconnect a test session and confirm the job PID remains active and produces its expected completion log. This verifies the action: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. The test applies to: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method.

B.

This check is intended for another scenario: An operator needs to locate one obsolete directive among many lines and remove it without affecting similar entries. The case here is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The pertinent test is: Disconnect a test session and confirm the job PID remains active and produces its expected completion log.

C.

This check is intended for another scenario: A support engineer needs to identify the installed Debian package that owns a failing executable under /usr/bin. The case here is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The pertinent test is: Disconnect a test session and confirm the job PID remains active and produces its expected completion log.

D.

This check is intended for another scenario: A Linux application must be archived with nested configuration and metadata before a version migration. The case here is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The pertinent test is: Disconnect a test session and confirm the job PID remains active and produces its expected completion log.

Question 344

A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. 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. Terminate the largest-looking process by name before checking whether CPU, I/O or memory is actually constrained.
  3. Type configuration into normal mode and then force quit while assuming keystrokes were saved.
  4. Place the task in the foreground and close SSH immediately while assuming it continues automatically.

Answer & Explanations

Correct answer: D

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 remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. Here, avoid: Place the task in the foreground and close SSH immediately while assuming it continues automatically. Instead: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

B.

This is a shortcut for another issue: A Linux machine is slow and a technician assumes that CPU is saturated without measuring running tasks. The specific case is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. Here, avoid: Place the task in the foreground and close SSH immediately while assuming it continues automatically. Instead: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

C.

This is a shortcut for another issue: A new administrator can navigate a configuration file in vi but typing does not insert text because normal mode is active. The specific case is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. Here, avoid: Place the task in the foreground and close SSH immediately while assuming it continues automatically. Instead: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

D.

Place the task in the foreground and close SSH immediately while assuming it continues automatically. This is unsafe in: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The likely result is: The planned batch job may terminate early and leave incomplete output. Instead: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

Question 345

A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. Which adverse result is most specifically linked to the uncorrected condition?

  1. The planned batch job may terminate early and leave incomplete output.
  2. Operators may lose required live status during a maintenance action despite a log being created.
  3. Data may remain unsaved and application cleanup can be bypassed unnecessarily.
  4. A failure may be missed by operators because its error stream was never captured where expected.

Answer & Explanations

Correct answer: A

A.

The planned batch job may terminate early and leave incomplete output. This can follow from the shortcut: Place the task in the foreground and close SSH immediately while assuming it continues automatically. The protective action is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. The case states: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method.

B.

This failure concerns another situation: A deployment operator wants to watch command output live and also preserve an exact run log for review. The case here is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The primary consequence is: The planned batch job may terminate early and leave incomplete output. The prevention is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

C.

This failure concerns another situation: A database helper is slow to exit and an operator wants to ensure it can flush in-memory state. The case here is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The primary consequence is: The planned batch job may terminate early and leave incomplete output. The prevention is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

D.

This failure concerns another situation: A nightly job must save normal command output while leaving failures visible in a separate diagnostic log. The case here is: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The primary consequence is: The planned batch job may terminate early and leave incomplete output. The prevention is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

Question 346

An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. What should the system administrator do first to resolve the stated issue?

  1. Identify the intended process by PID, command line and owner before sending the appropriate signal.
  2. Use cut with the matching delimiter and field number to select the requested column without modifying source data.
  3. Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.
  4. Use renice with the verified target PID and permitted new nice value to adjust an existing process.

Answer & Explanations

Correct answer: C

A.

This action fits another scenario: A host has several similarly named application processes and only one worker must be restarted. The stated scenario is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The appropriate response here is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

B.

This action fits another scenario: A service report has colon-separated records and an analyst needs only the second field of each line. The stated scenario is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The appropriate response here is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

C.

Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. The scenario is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The technical reason is: A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

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 administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The appropriate response here is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

Question 347

An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The administrator proposes: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. Which Linux behavior makes the proposed remediation appropriate?

  1. The default systemd target determines the intended boot-time unit grouping, separate from a temporary target switch.
  2. A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.
  3. A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.
  4. A directory tree contains nested entries, which ordinary file-only copying does not traverse recursively.

Answer & Explanations

Correct answer: C

A.

This principle explains another scenario: A headless Linux appliance unexpectedly starts a graphical desktop after a default target change. The situation here is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The controlling mechanism is: A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

B.

This principle explains another scenario: A Linux application must be archived with nested configuration and metadata before a version migration. The situation here is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The controlling mechanism is: A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

C.

A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate. That is why the appropriate action is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. The stated problem is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout.

D.

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: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The controlling mechanism is: A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

Question 348

An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The administrator proposes: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. What acceptance check best distinguishes success from an unchanged issue?

  1. Disconnect a test session and confirm the job PID remains active and produces its expected completion log.
  2. Retrieve the exact command syntax and confirm options from help before using a non-destructive test input.
  3. Inspect the new process NI value using ps or top and compare interactive responsiveness during a test workload.
  4. Compare before-and-after samples including lookalike hostnames and confirm only designated tokens change.

Answer & Explanations

Correct answer: A

A.

Disconnect a test session and confirm the job PID remains active and produces its expected completion log. This verifies the action: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. The test applies to: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout.

B.

This check is intended for another scenario: A junior engineer repeatedly guesses unfamiliar command flags from memory despite local manual pages describing exact usage. The case here is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The pertinent test is: Disconnect a test session and confirm the job PID remains active and produces its expected completion log.

C.

This check is intended for another scenario: A CPU-intensive indexer must run on a shared Linux server while interactive workloads retain reasonable responsiveness. The case here is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The pertinent test is: Disconnect a test session and confirm the job PID remains active and produces its expected completion log.

D.

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: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The pertinent test is: Disconnect a test session and confirm the job PID remains active and produces its expected completion log.

Question 349

An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. What tempting response would create an avoidable operational hazard?

  1. Force-remove RPM files directly while ignoring a transaction preview that shows broken dependencies.
  2. Redirect only file descriptor 1 and claim that all diagnostic errors were captured with it.
  3. Place the task in the foreground and close SSH immediately while assuming it continues automatically.
  4. Pipe newline-delimited filenames through ordinary xargs and assume each line always maps to a complete safe path.

Answer & Explanations

Correct answer: C

A.

This is a shortcut for another issue: A RHEL-like system requires a security update with dependent libraries and the engineer has approved repositories available. The specific case is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. Here, avoid: Place the task in the foreground and close SSH immediately while assuming it continues automatically. Instead: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

B.

This is a shortcut for another issue: A nightly job must save normal command output while leaving failures visible in a separate diagnostic log. The specific case is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. Here, avoid: Place the task in the foreground and close SSH immediately while assuming it continues automatically. Instead: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

C.

Place the task in the foreground and close SSH immediately while assuming it continues automatically. This is unsafe in: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The likely result is: The planned batch job may terminate early and leave incomplete output. Instead: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

D.

This is a shortcut for another issue: A cleanup command consumes paths emitted by find, but some names contain spaces and newlines. The specific case is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. Here, avoid: Place the task in the foreground and close SSH immediately while assuming it continues automatically. Instead: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

Question 350

An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. Which failure can follow if this control is ignored?

  1. Source information can be replaced or the consumer receives no filtered input.
  2. Active files or subdirectories may be erased along with the intended stale regular files.
  3. The planned batch job may terminate early and leave incomplete output.
  4. Extra files can be processed or deleted because the shell matched a wider set than intended.

Answer & Explanations

Correct answer: C

A.

This failure concerns another situation: An operator needs only matching error records from a command that emits hundreds of status lines. The case here is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The primary consequence is: The planned batch job may terminate early and leave incomplete output. The prevention is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

B.

This failure concerns another situation: A backup directory contains stale regular files and live subdirectories that must be retained. The case here is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The primary consequence is: The planned batch job may terminate early and leave incomplete output. The prevention is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

C.

The planned batch job may terminate early and leave incomplete output. This can follow from the shortcut: Place the task in the foreground and close SSH immediately while assuming it continues automatically. The protective action is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting. The case states: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout.

D.

This failure concerns another situation: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The case here is: An administrator starts a lengthy checksum job in a temporary terminal and wants it to survive normal logout. The primary consequence is: The planned batch job may terminate early and leave incomplete output. The prevention is: Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.

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