Skip to content

102-400 Practice Questions

Prepare for 102-400 with more than an answer.

84 questions in the full set12 sample questionsUpdated Jan 26, 2026

Unlock the full exam and previous versions

  • v1Standard 300 questions Locked
  • 102-400Legacy LPIC-1 Exam 102 v4.0 84 questions Current
Exam fee
$200 USD
Level
Associate
Valid for
5 years
Domains covered on the exam 6
  1. Shells, Scripting and Data Management17%
  2. User Interfaces and Desktops8%
  3. Administrative Tasks20%
  4. Essential System Services20%
  5. Networking Fundamentals23%
  6. Security15%
  1. 1

    What is true regarding a default route?

    Show answer details

    Correct answer: D

    A default route serves as a fallback when no specific route exists for a destination. The routing table is consulted in order of specificity (most specific first), and the default route (0.0.0.0/0) is only used when no more specific route matches. Option A is incorrect as other routes remain active. Option B is wrong as direct network communication does not require a default route. Option C reverses the priority order.

  2. 2

    When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

    Show answer details

    Correct answer: C

    The lsof (list open files) command shows which processes have files open on a filesystem, helping identify what is preventing unmounting. When a device appears busy, lsof can reveal processes with open file handles. Option A (strace) traces system calls but does not show open files. Option B (nessus) is a vulnerability scanner. Option D (debug) is not a standard command. Option E (traceroute) is for network path tracing.

  3. 3

    Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose two.)

    Show answer details

    Correct answer: C, E

    The --since parameter limits journalctl output to entries from a specified time forward. It accepts formats like "2023-01-01", "yesterday", "1 hour ago", or "15:30". Combined with --until, it creates precise time windows for log analysis. Options A, B, and D are not valid journalctl time-limiting parameters.

    The --until parameter limits journalctl output to entries up to a specified time. It works with the same time formats as --since and can be combined with it to define specific time ranges for log examination. Options A, B, and D are not valid journalctl time-limiting parameters.

  4. 4

    What is the difference between the commands test -e path and test -f path?

    Show answer details

    Correct answer: A

    The -e option tests for the existence of any path (file, directory, device, etc.), while the -f option specifically tests for the existence of a regular file. Option A correctly states that both check existence, but -f additionally confirms it is a regular file. Option B incorrectly claims -e tests for empty files (that would be -s for non-empty). Option C wrongly states -e tests for executable files (that would be -x). Option D is incorrect as they have different behaviors for directories and special files.

  5. 5

    In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?

    Show answer details

    Correct answer: B

    When neither /etc/cron.allow nor /etc/cron.deny exist, the default behavior is to deny access to all users except root. This is a security measure where explicit permission must be granted through cron.allow for users to create crontabs. Option A is incorrect as no approval process exists. Option C is wrong as cron will start normally. Option D is incorrect as the default is restrictive, not permissive.

  6. 6

    What is true regarding the file -/.forward?

    Show answer details

    Correct answer: B

    The ~/.forward file allows users to forward incoming mail to one or more recipients by listing email addresses, one per line. It can indeed forward to multiple recipients, making option B correct. Option A is incorrect as all users can configure their own .forward files. Option C is wrong as no newaliases command is needed for .forward files (that is for system-wide aliases). Option D is incorrect as users own and can edit their own .forward files.

Create an account to continue.