mcAfee Secure Website
23

LPI 101-500 Bundle

Exam Code: 101-500

Exam Name LPIC-1 Exam 101

Certification Provider: LPI

Corresponding Certification: LPIC-1

101-500 Training Materials $44.99

Reliable & Actual Study Materials for 101-500 Exam Success

The Latest 101-500 Exam Questions as Experienced in the Actual Test!

  • 24
    Questions & Answers

    101-500 Questions & Answers

    120 Questions & Answers

    Includes questions types found on actual exam such as drag and drop, simulation, type in, and fill in the blank.

  • 25
    101-500 Video Course

    101-500 Training Course

    126 Video Lectures

    Based on Real Life Scenarios which you will encounter in exam and learn by working with real equipment.

  • exam =30
    Study Guide

    101-500 Study Guide

    442 PDF Pages

    Study Guide developed by industry experts who have written exams in the past. They are technology-specific IT certification researchers with at least a decade of experience at Fortune 500 companies.

exam =32

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

Guarantee

Satisfaction Guaranteed

Pass4sure has a remarkable LPI Candidate Success record. We're confident of our products and provide no hassle product exchange. That's how confident we are!

99.3% Pass Rate
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • exam =34
    Questions & Answers

    Questions & Answers

    120 Questions

    $124.99
    exam =35
  • exam =37
    101-500 Video Course

    Training Course

    126 Video Lectures

    $39.99
  • exam =36
    Study Guide

    Study Guide

    442 PDF Pages

    $29.99

LPI 101-500 Practice Test 34

Question 330

A Linux administrator faces this situation: A script needs to record both standard output and error output in a single file for one command. Which action best resolves the specific issue while preserving correct system behavior?

  1. Pipe the command output into tee output.log so the stream reaches both the terminal and file.
  2. Redirect only stdout with command > report.txt and leave stderr separate.
  3. Use command >> execution.log rather than overwriting redirection.
  4. Use command > combined.log 2>&1 with the intended shell redirection order.

Explanation

Correct Answer

D:

Use command > combined.log 2>&1 with the intended shell redirection order. This corrects the case-specific failure. First verify: Inspect the redirection ordering and decide whether both descriptors should share the file. Then demonstrate success: The resulting file contains both normal lines and error messages from the command.

Incorrect Answers

A:

Pipe the command output into tee output.log so the stream reaches both the terminal and file. That would matter when an operator needs to view command output on screen and retain the same stream in a file. The relevant distinction in this case is: Use command > combined.log 2>&1 with the intended shell redirection order.

B:

Redirect only stdout with command > report.txt and leave stderr separate. That would matter when a command writes reports to standard output and warnings to standard error but only reports should enter a data file. It does not address this case's requirement: A script needs to record both standard output and error output in a single file for one command.

C:

Use command >> execution.log rather than overwriting redirection. That would matter when a maintenance script should append standard output to a cumulative log while retaining earlier runs. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 331

A Linux administrator faces this situation: A runaway process must be located by command name before sending any termination signal. Which action best resolves the specific issue while preserving correct system behavior?

  1. Escalate to SIGKILL only after confirming the target process and a documented graceful shutdown failure.
  2. Identify the exact target PID and send a normal SIGTERM using kill before escalation.
  3. Use watch -n seconds with the intended command for a periodically refreshed view.
  4. Use ps -ef or an equivalent process listing with owner and PID fields.

Explanation

Correct Answer

B:

Identify the exact target PID and send a normal SIGTERM using kill before escalation. This corrects the case-specific failure. First verify: Check running process names and PIDs using pgrep -a or a suitable ps filter. Then demonstrate success: The intended process exits gracefully and unrelated processes remain active.

Incorrect Answers

A:

Escalate to SIGKILL only after confirming the target process and a documented graceful shutdown failure. That would matter when a suspected process is unresponsive to a normal termination request but its temporary files must be considered. The relevant distinction in this case is: Identify the exact target PID and send a normal SIGTERM using kill before escalation.

C:

Use watch -n seconds with the intended command for a periodically refreshed view. That would matter when a monitoring script must run a small diagnostic command repeatedly and display its changing output. It does not address this case's requirement: A runaway process must be located by command name before sending any termination signal.

D:

Use ps -ef or an equivalent process listing with owner and PID fields. That would matter when an administrator wants to inspect all active processes and their owners rather than only the current shell's jobs. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 332

A quick workaround is proposed for this Linux problem: An administrator needs to inspect just the newest ten lines of a growing plain-text log. Which assumption creates the most relevant technical risk?

  1. uniq alone collapses only adjacent duplicate lines, not separated duplicates.
  2. head displays the beginning of a file and will not show the most recent appended entries.
  3. Using sed replacement syntax directly with tr is invalid because tr translates character sets.
  4. A matching checksum protects integrity only relative to a trustworthy expected digest, not publisher identity by itself.

Explanation

Correct Answer

B:

head displays the beginning of a file and will not show the most recent appended entries. This is the scenario's misleading assumption. An engineer should investigate: Check log order and whether new entries append at the end of the file. Appropriate evidence afterward is: The output shows the final ten recorded lines and live following displays new appended records.

Incorrect Answers

A:

uniq alone collapses only adjacent duplicate lines, not separated duplicates. That would matter when a list of hostnames contains repeated lines and an operator needs accurate occurrence counts. The relevant distinction in this case is: head displays the beginning of a file and will not show the most recent appended entries.

C:

Using sed replacement syntax directly with tr is invalid because tr translates character sets. That would matter when a stream includes mixed-case letters but downstream comparison requires lowercase text. It does not address this case's requirement: An administrator needs to inspect just the newest ten lines of a growing plain-text log.

D:

A matching checksum protects integrity only relative to a trustworthy expected digest, not publisher identity by itself. That would matter when a downloaded administrative script must be compared with a published SHA-256 digest before execution. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 333

Before changing a Linux system, an engineer observes: A memory alert reports a small free column and an operator assumes the Linux host has no reclaimable memory. Which check most directly isolates the relevant cause or prerequisite?

  1. Inspect free -h including available memory, buffers/cache, and swap usage.
  2. Inspect the shell's jobs table and the task's current stopped or background state.
  3. Verify a screen or tmux multiplexer is installed and understand its detach/reconnect workflow.
  4. Check whether the command can be safely placed into job control and has no terminal-input dependency.

Explanation

Correct Answer

A:

Inspect free -h including available memory, buffers/cache, and swap usage. This isolates the relevant condition before applying a change. The appropriate corrective response is: Evaluate memory pressure using the available column and observed workload rather than free alone.

Incorrect Answers

B:

Inspect the shell's jobs table and the task's current stopped or background state. That would matter when a long-running batch task should be suspended and resumed in the foreground of the same shell. The relevant distinction in this case is: Inspect free -h including available memory, buffers/cache, and swap usage.

C:

Verify a screen or tmux multiplexer is installed and understand its detach/reconnect workflow. That would matter when a terminal disconnection frequently interrupts an interactive maintenance session that must be reattached later. It does not address this case's requirement: A memory alert reports a small free column and an operator assumes the Linux host has no reclaimable memory.

D:

Check whether the command can be safely placed into job control and has no terminal-input dependency. That would matter when a foreground command must continue executing while the operator performs other work in the same shell. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 334

A Linux administrator faces this situation: A technician needs package description and dependencies before installing a Debian repository package. Which action best resolves the specific issue while preserving correct system behavior?

  1. Use dpkg -S /path/to/file to search installed package ownership records.
  2. Use apt-cache show package-name or an equivalent APT metadata query before selecting it.
  3. Run apt-get update before the planned apt-get install from configured repositories.
  4. Use apt-get remove or dpkg -r rather than the purge operation.

Explanation

Correct Answer

B:

Use apt-cache show package-name or an equivalent APT metadata query before selecting it. This corrects the case-specific failure. First verify: Check repository metadata availability and the exact package name. Then demonstrate success: The metadata identifies the intended package version, description, and dependency relationships.

Incorrect Answers

A:

Use dpkg -S /path/to/file to search installed package ownership records. That would matter when a system file has changed and an operator wants to identify its owning installed Debian package. The relevant distinction in this case is: Use apt-cache show package-name or an equivalent APT metadata query before selecting it.

C:

Run apt-get update before the planned apt-get install from configured repositories. That would matter when an administrator needs to install a Debian package by name but the local repository index is stale. It does not address this case's requirement: A technician needs package description and dependencies before installing a Debian repository package.

D:

Use apt-get remove or dpkg -r rather than the purge operation. That would matter when a service package is no longer needed but its local configuration should remain for possible reinstallation. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 335

A Linux operator claims the following problem is resolved: A temporary build directory must be deleted recursively while the adjacent production tree remains untouched. Which result best demonstrates an effective repair?

  1. The full nested path exists and a second execution does not fail solely because it already exists.
  2. tar -tzf lists the intended relative paths and extraction in a scratch directory reconstructs the tree.
  3. The intended temporary tree is gone and the neighboring production directory remains present.
  4. The copied tree retains expected symlinks, modes, and timestamps without dereferencing links unexpectedly.

Explanation

Correct Answer

C:

The intended temporary tree is gone and the neighboring production directory remains present. This tests actual resulting behavior rather than only the presence of a command or configuration. The relevant remediation is: Use rm -r only against the verified temporary directory with appropriate safety checks.

Incorrect Answers

A:

The full nested path exists and a second execution does not fail solely because it already exists. That would matter when a directory must be created under several missing parent components in one command. The relevant distinction in this case is: The intended temporary tree is gone and the neighboring production directory remains present.

B:

tar -tzf lists the intended relative paths and extraction in a scratch directory reconstructs the tree. That would matter when a directory tree must be archived with relative paths for transfer to another Linux machine. It does not address this case's requirement: A temporary build directory must be deleted recursively while the adjacent production tree remains untouched.

D:

The copied tree retains expected symlinks, modes, and timestamps without dereferencing links unexpectedly. That would matter when an administrator must copy a directory tree while retaining timestamps, modes, and symbolic links. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 336

A Linux operator claims the following problem is resolved: A developer temporarily tests a private library build without replacing the system-wide shared object. Which result best demonstrates an effective repair?

  1. ldd resolves the dependency and the program starts without a shared-library loading error.
  2. The test executable loads the private library and ordinary system programs keep using installed libraries.
  3. ldconfig -p lists the intended soname and the linked executable loads the library successfully.
  4. The manifest shows the executable, libraries, and package-managed files to be reviewed.

Explanation

Correct Answer

B:

The test executable loads the private library and ordinary system programs keep using installed libraries. This tests actual resulting behavior rather than only the presence of a command or configuration. The relevant remediation is: Set LD_LIBRARY_PATH only for the controlled test process while keeping production linker paths unchanged.

Incorrect Answers

A:

ldd resolves the dependency and the program starts without a shared-library loading error. That would matter when an executable reports a missing shared-object dependency although its binary file exists. The relevant distinction in this case is: The test executable loads the private library and ordinary system programs keep using installed libraries.

C:

ldconfig -p lists the intended soname and the linked executable loads the library successfully. That would matter when a newly installed system library under a standard configured path is not found by the dynamic linker. It does not address this case's requirement: A developer temporarily tests a private library build without replacing the system-wide shared object.

D:

The manifest shows the executable, libraries, and package-managed files to be reviewed. That would matter when a security reviewer wants all files supplied by an installed RPM package before modifying the service. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 337

A Linux operator claims the following problem is resolved: A service cannot find the UUID of a new filesystem and an operator wants a reliable mapping from block devices. Which result best demonstrates an effective repair?

  1. The mount options show rw and a controlled write test succeeds.
  2. The chosen UUID matches the expected device and the fstab mount resolves successfully.
  3. After reboot, the intended filesystem mounts at the correct path even if enumeration order changes.
  4. All intended eligible fstab mounts succeed without an unexpected mount failure.

Explanation

Correct Answer

B:

The chosen UUID matches the expected device and the fstab mount resolves successfully. This tests actual resulting behavior rather than only the presence of a command or configuration. The relevant remediation is: Use blkid or lsblk -f to record the correct identifier for persistent mounting.

Incorrect Answers

A:

The mount options show rw and a controlled write test succeeds. That would matter when an already mounted filesystem needs to change from read-only to read-write after a controlled recovery. The relevant distinction in this case is: The chosen UUID matches the expected device and the fstab mount resolves successfully.

C:

After reboot, the intended filesystem mounts at the correct path even if enumeration order changes. That would matter when a storage device's /dev/sdX designation changes across reboots and an fstab entry stops mounting it. It does not address this case's requirement: A service cannot find the UUID of a new filesystem and an operator wants a reliable mapping from block devices.

D:

All intended eligible fstab mounts succeed without an unexpected mount failure. That would matter when an administrator edits /etc/fstab and wants to verify the configuration without rebooting immediately. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 338

Before changing a Linux system, an engineer observes: A CPU-heavy batch process must start with lower scheduling priority than normal interactive tasks. Which check most directly isolates the relevant cause or prerequisite?

  1. Check the PID, owner, and current NI value of the existing process.
  2. Check the service owner's privilege and confirm the desired new nice value is lower than 15.
  3. Inspect ps output fields and choose NI or nice rather than assuming lower PID means higher priority.
  4. Inspect the default nice value and confirm the process is appropriate for a reduced priority.

Explanation

Correct Answer

D:

Inspect the default nice value and confirm the process is appropriate for a reduced priority. This isolates the relevant condition before applying a change. The appropriate corrective response is: Launch the command with nice -n 10 command to increase its niceness.

Incorrect Answers

A:

Check the PID, owner, and current NI value of the existing process. That would matter when an already running background process is delaying interactive work and needs a lower scheduling priority. The relevant distinction in this case is: Inspect the default nice value and confirm the process is appropriate for a reduced priority.

B:

Check the service owner's privilege and confirm the desired new nice value is lower than 15. That would matter when a service has a nice value of 15 and an operator wants to raise its scheduling priority within the authorized range. It does not address this case's requirement: A CPU-heavy batch process must start with lower scheduling priority than normal interactive tasks.

C:

Inspect ps output fields and choose NI or nice rather than assuming lower PID means higher priority. That would matter when an administrator needs to compare two jobs' scheduling niceness without confusing it with process IDs. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 339

A Linux administrator faces this situation: An application needs a versioned executable alias that can be repointed to a new release without replacing the binary. Which action best resolves the specific issue while preserving correct system behavior?

  1. Update the symbolic link to reference the verified new release while retaining a rollback target.
  2. Restore the intended target or replace the link with a real copy if independent content is required.
  3. Create a symbolic link using ln -s source_path alias_path.
  4. Use a symbolic link or a bind mount rather than creating an ordinary hard link to a directory.

Explanation

Correct Answer

A:

Update the symbolic link to reference the verified new release while retaining a rollback target. This corrects the case-specific failure. First verify: Inspect the current symlink and intended release paths before updating it. Then demonstrate success: The alias resolves to the new executable and can be safely returned to the prior release.

Incorrect Answers

B:

Restore the intended target or replace the link with a real copy if independent content is required. That would matter when an administrator deletes the original file but expects its symbolic link to keep working as a stored copy. The relevant distinction in this case is: Update the symbolic link to reference the verified new release while retaining a rollback target.

C:

Create a symbolic link using ln -s source_path alias_path. That would matter when a configuration file must be referenced through an alias on a different filesystem. It does not address this case's requirement: An application needs a versioned executable alias that can be repointed to a new release without replacing the binary.

D:

Use a symbolic link or a bind mount rather than creating an ordinary hard link to a directory. That would matter when an operator attempts to hard-link a directory as a shortcut to reuse it from another location. That separate mechanism does not verify the needed Linux administration outcome in this case.

Question 340

A Linux administrator faces this situation: A rescue engineer cannot tell whether the firmware, bootloader, kernel, or init system is responsible for a failed boot. Which action best resolves the specific issue while preserving correct system behavior?

  1. Correct the unit's dependency, environment, or startup configuration revealed by the journal.
  2. Repair the specific kernel or hardware dependency reported rather than modifying unrelated services.
  3. Restore the correct UEFI boot entry and supported EFI bootloader files for the installed system.
  4. Apply the repair at the first failing stage rather than changing every layer simultaneously.

Explanation

Correct Answer

D:

Apply the repair at the first failing stage rather than changing every layer simultaneously. This corrects the case-specific failure. First verify: Establish the last successful boot stage from console messages, GRUB behavior, and journal or kernel logs. Then demonstrate success: Repeated boot traces pass the previously failing handoff and reach the intended userspace target.

Incorrect Answers

A:

Correct the unit's dependency, environment, or startup configuration revealed by the journal. That would matter when a service fails only during startup and the engineer needs logs from the current boot. The relevant distinction in this case is: Apply the repair at the first failing stage rather than changing every layer simultaneously.

B:

Repair the specific kernel or hardware dependency reported rather than modifying unrelated services. That would matter when a server intermittently hangs before systemd starts and an administrator needs to see kernel initialization messages. It does not address this case's requirement: A rescue engineer cannot tell whether the firmware, bootloader, kernel, or init system is responsible for a failed boot.

C:

Restore the correct UEFI boot entry and supported EFI bootloader files for the installed system. That would matter when a UEFI Linux host stops at firmware selection and never starts the installed boot manager. That separate mechanism does not verify the needed Linux administration outcome in this case.