LPIC-1 Exam 102 v4.0 Free Sample Questions

12 free sample questions84 in the full practice test Other version: 102-500(300)

Try simulator

102-400 Sample Questions

  1. Question 1

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

    Answer and explanation

    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.

  2. Question 2

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

    Answer and explanation

    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.

  3. Question 3

    What is true regarding the file -/.forward?

    Answer and explanation

    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.

  4. Question 4

    What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

    Answer and explanation

    Correct answer: E

    The correct syslog.conf entry to display all messages on console 12 is ./dev/tty12, where . means all facilities and all priorities, and /dev/tty12 is the device file for virtual terminal 12. Option A uses invalid pipe syntax for syslog. Option B only captures mail facility messages. Option C lacks the facility.priority selector. Option D is not a valid syslog entry format.

  5. Question 5

    Which configuration file would be edited to change default options for the OpenSSH server?

    Answer and explanation

    Correct answer: D

    /etc/ssh/sshd_config is the main configuration file for the OpenSSH server daemon (sshd). This file contains server-specific settings like port numbers, authentication methods, and access controls. Option A and E are non-existent files. Option B is incomplete. Option C (/etc/ssh/ssh_config) is the client configuration file, not the server configuration.

  6. Question 6

    Multiple answers

    Which of the following commands can be used to display the local routing table? (Choose two.)

    Answer and explanation

    Correct answers: D, E

    The route command displays and manipulates the local routing table, showing destination networks, gateways, and interface information. Used with no arguments, it shows the current routing table. The netstat command with -r option also displays routing information. Other options are incorrect: trackroute is not a valid command, dig is for DNS queries, and ifconfig shows interface configuration but not routing tables.

    The netstat command with the -r option displays the local routing table, showing routes, gateways, and network interfaces. It provides similar information to the route command but in a different format. The route command is the other correct answer. Other options are incorrect: trackroute is not a valid command, dig is for DNS queries, and ifconfig shows interface configuration but not routing tables.

Register free to unlock 6 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 384 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon