Free LPI 102-500 Exam Actual Questions

The questions for 102-500 were last updated On Jan 16, 2025

Question No. 1

What output does the command seq 1 5 20 produce?

Show Answer Hide Answer
Correct Answer: B

Question No. 3

Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)

Show Answer Hide Answer
Correct Answer: A, C, E

The /etc/group file is a text file that defines the groups and their members on the system. Each line in the file represents a single group, with the following format:

group_name:password:GID:user_list

The fields are:

group_name: the name of the group

password: the (encrypted) group password, or empty for no password

GID: the numerical group ID

user_list: a comma-separated list of users who belong to the group

Therefore, the fields that can be found in the /etc/group file are the name of the group, the password of the group, and the list of users that belong to the group. The home directory and the description of the group are not part of the /etc/group file format.Reference:

group(5) - Linux manual page

/etc/group file format | Linux#


Question No. 4

Which of the following protocols is designed to access the video card output of a virtual machine?

Show Answer Hide Answer
Correct Answer: D

Question No. 5

The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory? (Provide the full path to the directory, without any country information)

Show Answer Hide Answer
Correct Answer: A

The /usr/share/zoneinfo directory contains the binary time zone files that are used by the system to determine the local time for any region. The files are organized in subdirectories by continent, country, or ocean. Some files represent the standard time zones, while others may have historical or political variations. To set the system's timezone, one can create a symbolic link from /etc/localtime to the appropriate file in the /usr/share/zoneinfo directory. For example, to set the timezone to America/New_York, one can use the command sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime. Alternatively, one can use the timedatectl command to set the timezone without creating the link manually.Reference:

How to Set or Change the Time Zone in Linux | Linuxize

4 Ways to Change the Timezone in Linux - wikiHow