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 28

Question 270

An operator copies a folder to an archive but discovers that only the top-level files were included. Which operational impact should the engineer expect if the gap remains?

  1. Nested configuration and artifacts may be omitted from the recovered copy.
  2. A command can receive partial filenames and act on unintended filesystem objects.
  3. The configuration remains unchanged or unwanted editor commands execute instead of adding text.
  4. Data may remain unsaved and application cleanup can be bypassed unnecessarily.

Answer & Explanations

Correct answer: A

A.

Nested configuration and artifacts may be omitted from the recovered copy. This can follow from the shortcut: Copy only files matching a top-level wildcard and claim that all subdirectories were preserved. The protective action is: Use a recursive copy operation such as cp -R with reviewed source and destination paths. The case states: An operator copies a folder to an archive but discovers that only the top-level files were included.

B.

This failure concerns another situation: A cleanup command consumes paths emitted by find, but some names contain spaces and newlines. The case here is: An operator copies a folder to an archive but discovers that only the top-level files were included. The primary consequence is: Nested configuration and artifacts may be omitted from the recovered copy. The prevention is: Use a recursive copy operation such as cp -R with reviewed source and destination paths.

C.

This failure concerns another situation: A new administrator can navigate a configuration file in vi but typing does not insert text because normal mode is active. The case here is: An operator copies a folder to an archive but discovers that only the top-level files were included. The primary consequence is: Nested configuration and artifacts may be omitted from the recovered copy. The prevention is: Use a recursive copy operation such as cp -R with reviewed source and destination paths.

D.

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: An operator copies a folder to an archive but discovers that only the top-level files were included. The primary consequence is: Nested configuration and artifacts may be omitted from the recovered copy. The prevention is: Use a recursive copy operation such as cp -R with reviewed source and destination paths.

Question 271

A backup directory contains stale regular files and live subdirectories that must be retained. Which configuration or command decision addresses the stated failure?

  1. Design mount points and partition or logical-volume allocations around root, /var, /home, boot requirements and expected workload growth.
  2. Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.
  3. Use suitable beginning or end anchors in a grep expression to constrain the match to the required line position.
  4. Identify the intended process by PID, command line and owner before sending the appropriate signal.

Answer & Explanations

Correct answer: B

A.

This action fits another scenario: A logging server fills its root filesystem because variable application logs share the same small root partition. The stated scenario is: A backup directory contains stale regular files and live subdirectories that must be retained. The appropriate response here is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

B.

Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. The scenario is: A backup directory contains stale regular files and live subdirectories that must be retained. The technical reason is: find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.

C.

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 backup directory contains stale regular files and live subdirectories that must be retained. The appropriate response here is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

D.

This action fits another scenario: A host has several similarly named application processes and only one worker must be restarted. The stated scenario is: A backup directory contains stale regular files and live subdirectories that must be retained. The appropriate response here is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

Question 272

A backup directory contains stale regular files and live subdirectories that must be retained. The administrator proposes: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. Which technical explanation supports the proposed Linux action?

  1. A substitution expression transforms matching text; careless patterns can match more data than the intended literal token.
  2. A pipeline feeds one command's standard output into another command's standard input for sequential transformation.
  3. find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.
  4. vi distinguishes command navigation from text editing, and a quit-without-save command deliberately abandons edits.

Answer & Explanations

Correct answer: C

A.

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: A backup directory contains stale regular files and live subdirectories that must be retained. The controlling mechanism is: find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.

B.

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 backup directory contains stale regular files and live subdirectories that must be retained. The controlling mechanism is: find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.

C.

find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely. That is why the appropriate action is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. The stated problem is: A backup directory contains stale regular files and live subdirectories that must be retained.

D.

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: A backup directory contains stale regular files and live subdirectories that must be retained. The controlling mechanism is: find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.

Question 273

A backup directory contains stale regular files and live subdirectories that must be retained. The administrator proposes: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. What test should validate the proposed configuration or command change?

  1. Start a fresh child command that prints the variable and confirm its value while checking the parent assignment.
  2. Search in a copy, remove the verified line, save and compare the resulting document with the expected change.
  3. Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup.
  4. Compare the terminal output and saved file for the same benign test run and confirm their content agrees.

Answer & Explanations

Correct answer: C

A.

This check is intended for another scenario: A shell script starts a subprocess that cannot see a value assigned earlier in an interactive Bash session. The case here is: A backup directory contains stale regular files and live subdirectories that must be retained. The pertinent test is: Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup.

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 backup directory contains stale regular files and live subdirectories that must be retained. The pertinent test is: Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup.

C.

Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup. This verifies the action: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. The test applies to: A backup directory contains stale regular files and live subdirectories that must be retained.

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 backup directory contains stale regular files and live subdirectories that must be retained. The pertinent test is: Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup.

Question 274

A backup directory contains stale regular files and live subdirectories that must be retained. What action would most directly undermine the intended safeguard?

  1. Execute rm recursively on the whole parent path because its directory name includes archive.
  2. Manually modify one generated grub.cfg line and assume subsequent kernel upgrades will preserve the change.
  3. Make the directory world-writable without a sticky bit and assume file read permissions also prevent deletion.
  4. Execute a numbered history entry with shell history expansion without first checking that it does not delete files.

Answer & Explanations

Correct answer: A

A.

Execute rm recursively on the whole parent path because its directory name includes archive. This is unsafe in: A backup directory contains stale regular files and live subdirectories that must be retained. The likely result is: Active files or subdirectories may be erased along with the intended stale regular files. Instead: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

B.

This is a shortcut for another issue: A Linux administrator edits bootloader default settings but the generated GRUB menu still contains old kernel parameters. The specific case is: A backup directory contains stale regular files and live subdirectories that must be retained. Here, avoid: Execute rm recursively on the whole parent path because its directory name includes archive. Instead: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

C.

This is a shortcut for another issue: A multiuser lab permits everyone to write to a common temporary directory but users delete one another's files. The specific case is: A backup directory contains stale regular files and live subdirectories that must be retained. Here, avoid: Execute rm recursively on the whole parent path because its directory name includes archive. Instead: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

D.

This is a shortcut for another issue: A junior engineer repeatedly guesses unfamiliar command flags from memory despite local manual pages describing exact usage. The specific case is: A backup directory contains stale regular files and live subdirectories that must be retained. Here, avoid: Execute rm recursively on the whole parent path because its directory name includes archive. Instead: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

Question 275

A backup directory contains stale regular files and live subdirectories that must be retained. What problem is the proposed administration change designed to prevent?

  1. Critical log categories may be omitted because the expression is interpreted as literal text.
  2. Extra files can be processed or deleted because the shell matched a wider set than intended.
  3. A healthy service can be interrupted while the true performance bottleneck remains.
  4. Active files or subdirectories may be erased along with the intended stale regular files.

Answer & Explanations

Correct answer: D

A.

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: A backup directory contains stale regular files and live subdirectories that must be retained. The primary consequence is: Active files or subdirectories may be erased along with the intended stale regular files. The prevention is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

B.

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: A backup directory contains stale regular files and live subdirectories that must be retained. The primary consequence is: Active files or subdirectories may be erased along with the intended stale regular files. The prevention is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

C.

This failure concerns another situation: A Linux machine is slow and a technician assumes that CPU is saturated without measuring running tasks. The case here is: A backup directory contains stale regular files and live subdirectories that must be retained. The primary consequence is: Active files or subdirectories may be erased along with the intended stale regular files. The prevention is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

D.

Active files or subdirectories may be erased along with the intended stale regular files. This can follow from the shortcut: Execute rm recursively on the whole parent path because its directory name includes archive. The protective action is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. The case states: A backup directory contains stale regular files and live subdirectories that must be retained.

Question 276

An admin needs to list logs older than a threshold without matching similarly named directories and sockets. Which action best matches the required Linux behavior?

  1. Use explicit stdout and stderr file descriptors to route ordinary results and diagnostic messages separately.
  2. Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.
  3. Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.
  4. Connect the producing command to an appropriate reading filter with a shell pipeline, preserving the intended output channel.

Answer & Explanations

Correct answer: C

A.

This action fits another scenario: A nightly job must save normal command output while leaving failures visible in a separate diagnostic log. The stated scenario is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The appropriate response here is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

B.

This action fits another scenario: A Linux application must be archived with nested configuration and metadata before a version migration. The stated scenario is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The appropriate response here is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

C.

Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. The scenario is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The technical reason is: find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.

D.

This action fits another scenario: An operator needs only matching error records from a command that emits hundreds of status lines. The stated scenario is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The appropriate response here is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

Question 277

An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The administrator proposes: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. What underlying principle explains the selected remedy?

  1. find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.
  2. Normal-mode search and line operations act at the current cursor position, so targeted navigation matters.
  3. The shell resolves command names through built-ins, functions and its search path rather than choosing the newest installed binary.
  4. uniq compares adjacent lines, so equal values must first be grouped when duplicates are separated in the input.

Answer & Explanations

Correct answer: A

A.

find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely. That is why the appropriate action is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. The stated problem is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets.

B.

This principle explains another scenario: An operator needs to locate one obsolete directive among many lines and remove it without affecting similar entries. The situation here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The controlling mechanism is: find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.

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 admin needs to list logs older than a threshold without matching similarly named directories and sockets. The controlling mechanism is: find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.

D.

This principle explains another scenario: An incident sample lists several recurring hostnames out of order and the team wants one entry per distinct name. The situation here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The controlling mechanism is: find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.

Question 278

An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The administrator proposes: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. Which practical check confirms the proposed fix works as intended?

  1. Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup.
  2. Create two test files under different users and confirm cross-user deletion fails while own-file cleanup works.
  3. Disconnect a test session and confirm the job PID remains active and produces its expected completion log.
  4. Run the task against test paths containing spaces and shell wildcard characters and inspect actual argument boundaries.

Answer & Explanations

Correct answer: A

A.

Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup. This verifies the action: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. The test applies to: An admin needs to list logs older than a threshold without matching similarly named directories and sockets.

B.

This check is intended for another scenario: A multiuser lab permits everyone to write to a common temporary directory but users delete one another's files. The case here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The pertinent test is: Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup.

C.

This check is intended for another scenario: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The case here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The pertinent test is: Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup.

D.

This check is intended for another scenario: A maintenance script fails when a filename includes spaces because an unquoted variable expands into several command arguments. The case here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The pertinent test is: Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup.

Question 279

An admin needs to list logs older than a threshold without matching similarly named directories and sockets. Which shortcut is most likely to worsen this exact condition?

  1. Assume the target command always interprets wildcard syntax instead of recognizing shell expansion.
  2. Restart the process solely to alter its priority, losing hours of computation without checking renice.
  3. Execute rm recursively on the whole parent path because its directory name includes archive.
  4. Send SIGKILL to every process with a matching substring without checking ownership or workload scope.

Answer & Explanations

Correct answer: C

A.

This is a shortcut for another issue: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The specific case is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. Here, avoid: Execute rm recursively on the whole parent path because its directory name includes archive. Instead: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

B.

This is a shortcut for another issue: A running batch calculation should be deprioritized after users begin a time-critical interactive session. The specific case is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. Here, avoid: Execute rm recursively on the whole parent path because its directory name includes archive. Instead: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

C.

Execute rm recursively on the whole parent path because its directory name includes archive. This is unsafe in: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The likely result is: Active files or subdirectories may be erased along with the intended stale regular files. Instead: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

D.

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 admin needs to list logs older than a threshold without matching similarly named directories and sockets. Here, avoid: Execute rm recursively on the whole parent path because its directory name includes archive. Instead: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

Question 280

An admin needs to list logs older than a threshold without matching similarly named directories and sockets. What consequence best illustrates this particular configuration risk?

  1. The configuration remains unchanged or unwanted editor commands execute instead of adding text.
  2. Active files or subdirectories may be erased along with the intended stale regular files.
  3. The report may contain incorrect fields or silently omit empty values from its input.
  4. Editing either filename can change the shared data, defeating the intended independent backup.

Answer & Explanations

Correct answer: B

A.

This failure concerns another situation: A new administrator can navigate a configuration file in vi but typing does not insert text because normal mode is active. The case here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The primary consequence is: Active files or subdirectories may be erased along with the intended stale regular files. The prevention is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

B.

Active files or subdirectories may be erased along with the intended stale regular files. This can follow from the shortcut: Execute rm recursively on the whole parent path because its directory name includes archive. The protective action is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. The case states: An admin needs to list logs older than a threshold without matching similarly named directories and sockets.

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 admin needs to list logs older than a threshold without matching similarly named directories and sockets. The primary consequence is: Active files or subdirectories may be erased along with the intended stale regular files. The prevention is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

D.

This failure concerns another situation: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The case here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The primary consequence is: Active files or subdirectories may be erased along with the intended stale regular files. The prevention is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

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