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 60

Question 590

A software package installs host-specific config under /usr/share while deployment automation expects editable settings under /etc. What problem is the proposed administration change designed to prevent?

  1. The shortcut may fail immediately or remain broken when its target path is changed.
  2. Disk growth and maintenance tools may behave unpredictably because files are stored outside their intended hierarchy.
  3. Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified.
  4. Unrelated users may gain write access and alter or delete project files.

Answer & Explanations

Correct answer: B

A.

This failure concerns another situation: A maintenance shortcut to /opt/app/current stops working after a release directory is moved. The case here is: A software package installs host-specific config under /usr/share while deployment automation expects editable settings under /etc. The primary consequence is: Disk growth and maintenance tools may behave unpredictably because files are stored outside their intended hierarchy. The prevention is: Place host configuration under /etc and runtime variable logs under appropriate /var locations consistent with the Filesystem Hierarchy Standard.

B.

Disk growth and maintenance tools may behave unpredictably because files are stored outside their intended hierarchy. This can follow from the shortcut: Store growing logs next to static configuration in /etc simply because the service reads both during startup. The protective action is: Place host configuration under /etc and runtime variable logs under appropriate /var locations consistent with the Filesystem Hierarchy Standard. The case states: A software package installs host-specific config under /usr/share while deployment automation expects editable settings under /etc.

C.

This failure concerns another situation: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The case here is: A software package installs host-specific config under /usr/share while deployment automation expects editable settings under /etc. The primary consequence is: Disk growth and maintenance tools may behave unpredictably because files are stored outside their intended hierarchy. The prevention is: Place host configuration under /etc and runtime variable logs under appropriate /var locations consistent with the Filesystem Hierarchy Standard.

D.

This failure concerns another situation: A project directory has read permission but a user still cannot open a known file inside it. The case here is: A software package installs host-specific config under /usr/share while deployment automation expects editable settings under /etc. The primary consequence is: Disk growth and maintenance tools may behave unpredictably because files are stored outside their intended hierarchy. The prevention is: Place host configuration under /etc and runtime variable logs under appropriate /var locations consistent with the Filesystem Hierarchy Standard.

Question 591

An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. What is the most specific defensible operational intervention?

  1. Use dpkg-reconfigure where supported to rerun the installed package's configuration process with reviewed settings.
  2. Use history and man or the command's supported help output to inspect prior syntax and documented options without automatic execution.
  3. Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.
  4. Create or inspect the required partition table with a suitable disk-partitioning tool, then use mkswap on the verified intended swap area.

Answer & Explanations

Correct answer: C

A.

This action fits another scenario: An installed Debian package works with default settings but needs its package-managed setup dialog rerun after site changes. The stated scenario is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The appropriate response here is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

B.

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: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The appropriate response here is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

C.

Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. The scenario is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The technical reason is: which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.

D.

This action fits another scenario: A large Linux disk needs a new GPT partition and the engineer mistakenly assumes mkswap creates partition entries. The stated scenario is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The appropriate response here is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

Question 592

An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The administrator proposes: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. Which causal relationship connects the diagnosis to the recommended step?

  1. Without appropriate quoting, parameter expansion can undergo word splitting and pathname expansion before the command runs.
  2. which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.
  3. Conventional filesystem locations separate host-specific configuration from changing operational data and shared program assets.
  4. Mounting now changes the current namespace, while startup mounting relies on a persistent configuration or mount unit.

Answer & Explanations

Correct answer: B

A.

This principle explains another scenario: A maintenance script fails when a filename includes spaces because an unquoted variable expands into several command arguments. The situation here is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The controlling mechanism is: which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.

B.

which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale. That is why the appropriate action is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. The stated problem is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy.

C.

This principle explains another scenario: An operator puts application logs inside /etc and later confuses runtime output with persistent configuration files. The situation here is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The controlling mechanism is: which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.

D.

This principle explains another scenario: A technician successfully mounts a secondary data disk manually, but it disappears from the mount table after reboot. The situation here is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The controlling mechanism is: which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.

Question 593

An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The administrator proposes: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. Which observation proves the intended Linux behavior has been restored?

  1. Inspect df -h and df -i and demonstrate which resource changes after an approved cleanup of disposable test files.
  2. Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh.
  3. Compare the terminal output and saved file for the same benign test run and confirm their content agrees.
  4. Identify the last successful boot stage and verify the next component or configuration with a controlled recovery boot.

Answer & Explanations

Correct answer: B

A.

This check is intended for another scenario: A web service cannot create a tiny cache file although the filesystem still reports many free gigabytes. The case here is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The pertinent test is: Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh.

B.

Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh. This verifies the action: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. The test applies to: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy.

C.

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: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The pertinent test is: Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh.

D.

This check is intended for another scenario: A newly imaged laptop reaches UEFI firmware but never displays a GRUB selection after changing disk layout. The case here is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The pertinent test is: Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh.

Question 594

An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. Which seemingly quick workaround should the administrator reject?

  1. Extract an unreviewed archive directly over / with no inspection of contained paths or ownership.
  2. Execute rm recursively on the whole parent path because its directory name includes archive.
  3. Delete successive lines blindly from the top because the desired directive appears somewhere later.
  4. Assume a stale locate hit proves the command executed from that deleted path during the current session.

Answer & Explanations

Correct answer: D

A.

This is a shortcut for another issue: A Linux application must be archived with nested configuration and metadata before a version migration. The specific case is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. Here, avoid: Assume a stale locate hit proves the command executed from that deleted path during the current session. Instead: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

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: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. Here, avoid: Assume a stale locate hit proves the command executed from that deleted path during the current session. Instead: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

C.

This is a shortcut for another issue: An operator needs to locate one obsolete directive among many lines and remove it without affecting similar entries. The specific case is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. Here, avoid: Assume a stale locate hit proves the command executed from that deleted path during the current session. Instead: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

D.

Assume a stale locate hit proves the command executed from that deleted path during the current session. This is unsafe in: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The likely result is: Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. Instead: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

Question 595

An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. Which adverse result is most specifically linked to the uncorrected condition?

  1. Unrelated users may gain write access and alter or delete project files.
  2. Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified.
  3. One user may remove or rename another user's temporary files despite being unable to read their contents.
  4. Group collaboration can remain inconsistent and unnecessary privilege bits may increase risk.

Answer & Explanations

Correct answer: B

A.

This failure concerns another situation: A project directory has read permission but a user still cannot open a known file inside it. The case here is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The primary consequence is: Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. The prevention is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

B.

Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. This can follow from the shortcut: Assume a stale locate hit proves the command executed from that deleted path during the current session. The protective action is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. The case states: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy.

C.

This failure concerns another situation: A multiuser lab permits everyone to write to a common temporary directory but users delete one another's files. The case here is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The primary consequence is: Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. The prevention is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

D.

This failure concerns another situation: Two authorized team members create files in a shared folder but new files inherit different primary groups and colleagues lose access. The case here is: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The primary consequence is: Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. The prevention is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

Question 596

A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. What should the system administrator do first to resolve the stated issue?

  1. Place host configuration under /etc and runtime variable logs under appropriate /var locations consistent with the Filesystem Hierarchy Standard.
  2. Identify processes and active working directories using the mount, then close them before a supported umount operation.
  3. Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.
  4. Perform supported filesystem checking and repair on an appropriately unmounted or offline target, using backups and recovery procedures.

Answer & Explanations

Correct answer: C

A.

This action fits another scenario: An operator puts application logs inside /etc and later confuses runtime output with persistent configuration files. The stated scenario is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The appropriate response here is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

B.

This action fits another scenario: An administrator receives device-busy when trying to unmount a USB backup disk that a shell session is currently using. The stated scenario is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The appropriate response here is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

C.

Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. The scenario is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The technical reason is: which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.

D.

This action fits another scenario: A maintenance window reveals ext4 metadata errors and the administrator considers running a repair on its mounted read-write root filesystem. The stated scenario is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The appropriate response here is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

Question 597

A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The administrator proposes: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. Which Linux behavior makes the proposed remediation appropriate?

  1. A symbolic link stores a target pathname, can cross filesystem boundaries, and becomes dangling if that target disappears.
  2. tee duplicates incoming standard input to its output stream and specified file rather than selecting only one destination.
  3. which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.
  4. A pipeline feeds one command's standard output into another command's standard input for sequential transformation.

Answer & Explanations

Correct answer: C

A.

This principle explains another scenario: A maintenance shortcut to /opt/app/current stops working after a release directory is moved. The situation here is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The controlling mechanism is: which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.

B.

This principle explains another scenario: A deployment operator wants to watch command output live and also preserve an exact run log for review. The situation here is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The controlling mechanism is: which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.

C.

which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale. That is why the appropriate action is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. The stated problem is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed.

D.

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 workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The controlling mechanism is: which or type reflects command lookup, whereas locate depends on a separately maintained index that can be stale.

Question 598

A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The administrator proposes: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. What acceptance check best distinguishes success from an unchanged issue?

  1. Compare blkid and the configured fstab entry, then mount it in a safe test and verify the correct data appears at the mount point.
  2. Record stable disk identity and partition layout, run a reviewed mkfs operation in a test environment and confirm the new filesystem signature.
  3. Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh.
  4. Search in a copy, remove the verified line, save and compare the resulting document with the expected change.

Answer & Explanations

Correct answer: C

A.

This check is intended for another scenario: A disk is reassigned a new /dev name after a hardware change and a data filesystem fails to mount at startup. The case here is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The pertinent test is: Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh.

B.

This check is intended for another scenario: A server receives a new storage disk and an engineer must distinguish it from the system boot device before creating an ext4 filesystem. The case here is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The pertinent test is: Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh.

C.

Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh. This verifies the action: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. The test applies to: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed.

D.

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 workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The pertinent test is: Compare type or which for a known command, inspect an immediate find result and rerun locate after an authorized index refresh.

Question 599

A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. What tempting response would create an avoidable operational hazard?

  1. Set every directory and file mode to 777 just to eliminate one traversal failure.
  2. Assume the target command always interprets wildcard syntax instead of recognizing shell expansion.
  3. Execute mkswap on an unpartitioned entire production system drive assuming it only adds a harmless swap label.
  4. Assume a stale locate hit proves the command executed from that deleted path during the current session.

Answer & Explanations

Correct answer: D

A.

This is a shortcut for another issue: A project directory has read permission but a user still cannot open a known file inside it. The specific case is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. Here, avoid: Assume a stale locate hit proves the command executed from that deleted path during the current session. Instead: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

B.

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: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. Here, avoid: Assume a stale locate hit proves the command executed from that deleted path during the current session. Instead: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

C.

This is a shortcut for another issue: A large Linux disk needs a new GPT partition and the engineer mistakenly assumes mkswap creates partition entries. The specific case is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. Here, avoid: Assume a stale locate hit proves the command executed from that deleted path during the current session. Instead: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

D.

Assume a stale locate hit proves the command executed from that deleted path during the current session. This is unsafe in: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The likely result is: Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. Instead: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

Question 600

A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. Which failure can follow if this control is ignored?

  1. The package may remain unconfigured or introduce an untrusted dependency chain.
  2. The script may target the wrong files or refuse valid paths whenever names contain spaces or metacharacters.
  3. Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified.
  4. The wrong package may be replaced while the actual installation or dependency problem is left unresolved.

Answer & Explanations

Correct answer: C

A.

This failure concerns another situation: A Debian-based machine fails to locate a known package because its configured repository metadata is stale. The case here is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The primary consequence is: Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. The prevention is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

B.

This failure concerns another situation: A maintenance script fails when a filename includes spaces because an unquoted variable expands into several command arguments. The case here is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The primary consequence is: Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. The prevention is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

C.

Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. This can follow from the shortcut: Assume a stale locate hit proves the command executed from that deleted path during the current session. The protective action is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate. The case states: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed.

D.

This failure concerns another situation: A support engineer needs to identify the installed Debian package that owns a failing executable under /usr/bin. The case here is: A workstation searches for a newly created file using locate but the result is absent until the name database is refreshed. The primary consequence is: Troubleshooting can target a nonexistent file while the real command version or fresh file remains unidentified. The prevention is: Distinguish PATH-aware command lookup from locate's indexed filename database and use find or updatedb as appropriate.

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