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 57

Question 560

An administrator wants shared scratch space without allowing an unrelated account to remove files it does not own. Which adverse result is most specifically linked to the uncorrected condition?

  1. The executable may still fail to load or may execute against an incompatible untrusted library.
  2. One user may remove or rename another user's temporary files despite being unable to read their contents.
  3. Ordinary logging or one user's files may exhaust root space and interrupt essential services.
  4. Unintended archive entries could overwrite system configuration and disrupt running applications.

Answer & Explanations

Correct answer: B

A.

This failure concerns another situation: A command fails at startup because the dynamic loader cannot find a library even though the executable file exists. The case here is: An administrator wants shared scratch space without allowing an unrelated account to remove files it does not own. The primary consequence is: One user may remove or rename another user's temporary files despite being unable to read their contents. The prevention is: Enable the sticky bit on the shared writable directory and retain appropriate owner and access controls.

B.

One user may remove or rename another user's temporary files despite being unable to read their contents. This can follow from the shortcut: Make the directory world-writable without a sticky bit and assume file read permissions also prevent deletion. The protective action is: Enable the sticky bit on the shared writable directory and retain appropriate owner and access controls. The case states: An administrator wants shared scratch space without allowing an unrelated account to remove files it does not own.

C.

This failure concerns another situation: A logging server fills its root filesystem because variable application logs share the same small root partition. The case here is: An administrator wants shared scratch space without allowing an unrelated account to remove files it does not own. The primary consequence is: One user may remove or rename another user's temporary files despite being unable to read their contents. The prevention is: Enable the sticky bit on the shared writable directory and retain appropriate owner and access controls.

D.

This failure concerns another situation: A Linux application must be archived with nested configuration and metadata before a version migration. The case here is: An administrator wants shared scratch space without allowing an unrelated account to remove files it does not own. The primary consequence is: One user may remove or rename another user's temporary files despite being unable to read their contents. The prevention is: Enable the sticky bit on the shared writable directory and retain appropriate owner and access controls.

Question 561

A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. Which action best matches the required Linux behavior?

  1. Use renice with the verified target PID and permitted new nice value to adjust an existing process.
  2. Compare df for free blocks and inode availability before choosing a filesystem maintenance response.
  3. Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.
  4. Enable the sticky bit on the shared writable directory and retain appropriate owner and access controls.

Answer & Explanations

Correct answer: C

A.

This action fits another scenario: A running batch calculation should be deprioritized after users begin a time-critical interactive session. The stated scenario is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The appropriate response here is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

B.

This action fits another scenario: A web service cannot create a tiny cache file although the filesystem still reports many free gigabytes. The stated scenario is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The appropriate response here is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

C.

Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. The scenario is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The technical reason is: Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.

D.

This action fits another scenario: A multiuser lab permits everyone to write to a common temporary directory but users delete one another's files. The stated scenario is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The appropriate response here is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

Question 562

A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The administrator proposes: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. What underlying principle explains the selected remedy?

  1. tee duplicates incoming standard input to its output stream and specified file rather than selecting only one destination.
  2. find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.
  3. Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.
  4. A substitution expression transforms matching text; careless patterns can match more data than the intended literal token.

Answer & Explanations

Correct answer: C

A.

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 backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The controlling mechanism is: Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.

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 backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The controlling mechanism is: Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.

C.

Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain. That is why the appropriate action is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. The stated problem is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents.

D.

This principle explains another scenario: A config sample needs a known old hostname replaced with a new one while unrelated text must remain unchanged. The situation here is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The controlling mechanism is: Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.

Question 563

A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The administrator proposes: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. Which practical check confirms the proposed fix works as intended?

  1. Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access.
  2. Create test files and subdirectories as two group members and inspect group ownership and effective permissions.
  3. Use a test group member to traverse a known path and read an allowed file while verifying unrelated users remain denied.
  4. Verify current mount state, inspect fstab and test a planned reboot or mount -a only when persistence is required.

Answer & Explanations

Correct answer: A

A.

Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access. This verifies the action: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. The test applies to: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents.

B.

This check is intended for another scenario: 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: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The pertinent test is: Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access.

C.

This check is intended for another scenario: A project directory has read permission but a user still cannot open a known file inside it. The case here is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The pertinent test is: Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access.

D.

This check is intended for another scenario: A technician successfully mounts a secondary data disk manually, but it disappears from the mount table after reboot. The case here is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The pertinent test is: Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access.

Question 564

A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. Which shortcut is most likely to worsen this exact condition?

  1. Use an unrelated byte-count command and assume it identifies the second logical column of structured records.
  2. Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited.
  3. Terminate the largest-looking process by name before checking whether CPU, I/O or memory is actually constrained.
  4. Hardcode the first available /dev/sdX device as a permanent backup mount without checking its identity.

Answer & Explanations

Correct answer: B

A.

This is a shortcut for another issue: A service report has colon-separated records and an analyst needs only the second field of each line. The specific case is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. Here, avoid: Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. Instead: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

B.

Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. This is unsafe in: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The likely result is: Editing either filename can change the shared data, defeating the intended independent backup. Instead: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

C.

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 backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. Here, avoid: Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. Instead: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

D.

This is a shortcut for another issue: A disk is reassigned a new /dev name after a hardware change and a data filesystem fails to mount at startup. The specific case is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. Here, avoid: Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. Instead: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

Question 565

A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. What consequence best illustrates this particular configuration risk?

  1. Important partition metadata or data may be overwritten while the desired swap layout remains wrong.
  2. Buffered data can be lost and the filesystem may require recovery after unsafe removal.
  3. Nested configuration and artifacts may be omitted from the recovered copy.
  4. Editing either filename can change the shared data, defeating the intended independent backup.

Answer & Explanations

Correct answer: D

A.

This failure concerns another situation: A large Linux disk needs a new GPT partition and the engineer mistakenly assumes mkswap creates partition entries. The case here is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The primary consequence is: Editing either filename can change the shared data, defeating the intended independent backup. The prevention is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

B.

This failure concerns another situation: An administrator receives device-busy when trying to unmount a USB backup disk that a shell session is currently using. The case here is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The primary consequence is: Editing either filename can change the shared data, defeating the intended independent backup. The prevention is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

C.

This failure concerns another situation: A project directory contains nested configuration files and an engineer must duplicate its full tree to a test location. The case here is: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The primary consequence is: Editing either filename can change the shared data, defeating the intended independent backup. The prevention is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

D.

Editing either filename can change the shared data, defeating the intended independent backup. This can follow from the shortcut: Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. The protective action is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. The case states: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents.

Question 566

An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. Which Linux administration step most directly corrects this problem?

  1. Quote path expansions such as "$source" so Bash passes the intended filename as one argument.
  2. Use lsblk and partition metadata to verify the intended block device, then create the approved filesystem only on the selected partition.
  3. Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.
  4. Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

Answer & Explanations

Correct answer: D

A.

This action fits another scenario: A maintenance script fails when a filename includes spaces because an unquoted variable expands into several command arguments. The stated scenario is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The appropriate response here is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

B.

This action fits 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 stated scenario is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The appropriate response here is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

C.

This action fits another scenario: A backup directory contains stale regular files and live subdirectories that must be retained. The stated scenario is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The appropriate response here is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

D.

Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. The scenario is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The technical reason is: Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.

Question 567

An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The administrator proposes: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. Why would the recommended command or configuration resolve this problem?

  1. A setgid directory causes newly created entries to inherit the directory's group on common Linux filesystems.
  2. Conventional filesystem locations separate host-specific configuration from changing operational data and shared program assets.
  3. Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.
  4. A shell's job lifecycle and hangup signals can terminate attached processes unless their session handling is deliberate.

Answer & Explanations

Correct answer: C

A.

This principle explains another scenario: Two authorized team members create files in a shared folder but new files inherit different primary groups and colleagues lose access. The situation here is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The controlling mechanism is: Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.

B.

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 admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The controlling mechanism is: Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.

C.

Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain. That is why the appropriate action is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. The stated problem is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name.

D.

This principle explains another scenario: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The situation here is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The controlling mechanism is: Hard links share the underlying file data and inode, so removing one directory entry does not remove data while other links remain.

Question 568

An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The administrator proposes: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. Which verification is most specifically tied to the original failure?

  1. Test a small input containing nonadjacent duplicates and confirm each value appears once or with the correct count.
  2. List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.
  3. Capture a baseline of load, process activity and memory usage and compare it during the reproduced slowdown.
  4. Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access.

Answer & Explanations

Correct answer: D

A.

This check is intended for another scenario: An incident sample lists several recurring hostnames out of order and the team wants one entry per distinct name. The case here is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The pertinent test is: Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access.

B.

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: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The pertinent test is: Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access.

C.

This check is intended for another scenario: A Linux machine is slow and a technician assumes that CPU is saturated without measuring running tasks. The case here is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The pertinent test is: Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access.

D.

Create a test hard link, compare inode numbers and contents, and remove one name to verify remaining access. This verifies the action: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. The test applies to: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name.

Question 569

An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. Which risky choice fails to address the actual Linux problem?

  1. Assume a stale locate hit proves the command executed from that deleted path during the current session.
  2. Increase application memory limits because the disk still appears to have available byte capacity.
  3. Detach the storage device physically while an active process still writes to the filesystem.
  4. Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited.

Answer & Explanations

Correct answer: D

A.

This is a shortcut for another issue: An engineer wants to know which actual executable a shell will run while an outdated locate database also lists a removed copy. The specific case is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. Here, avoid: Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. Instead: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

B.

This is a shortcut for another issue: A web service cannot create a tiny cache file although the filesystem still reports many free gigabytes. The specific case is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. Here, avoid: Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. Instead: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

C.

This is a shortcut for another issue: An administrator receives device-busy when trying to unmount a USB backup disk that a shell session is currently using. The specific case is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. Here, avoid: Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. Instead: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

D.

Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. This is unsafe in: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The likely result is: Editing either filename can change the shared data, defeating the intended independent backup. Instead: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

Question 570

An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. Which operational impact should the engineer expect if the gap remains?

  1. The executable may still fail to load or may execute against an incompatible untrusted library.
  2. Operators may lose required live status during a maintenance action despite a log being created.
  3. Concurrent writes and repair operations may compound corruption or lose important files.
  4. Editing either filename can change the shared data, defeating the intended independent backup.

Answer & Explanations

Correct answer: D

A.

This failure concerns another situation: A command fails at startup because the dynamic loader cannot find a library even though the executable file exists. The case here is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The primary consequence is: Editing either filename can change the shared data, defeating the intended independent backup. The prevention is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

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: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The primary consequence is: Editing either filename can change the shared data, defeating the intended independent backup. The prevention is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

C.

This failure concerns another situation: A maintenance window reveals ext4 metadata errors and the administrator considers running a repair on its mounted read-write root filesystem. The case here is: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name. The primary consequence is: Editing either filename can change the shared data, defeating the intended independent backup. The prevention is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem.

D.

Editing either filename can change the shared data, defeating the intended independent backup. This can follow from the shortcut: Assume a hard link creates an isolated backup copy that stays unchanged when the original is edited. The protective action is: Use ls -i and link counts to recognize hard links as directory entries referring to the same inode on one filesystem. The case states: An admin removes one filename of a hard-linked log and is surprised the data remains available under another name.

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