102-500 LPIC-1 Exam 102 v5.0 Practice Questions
Prepare for 102-500 with more than an answer.
Unlock the full exam and previous versions
- v1Standard 300 questions Current
- 102-400Legacy LPIC-1 Exam 102 v4.0 84 questions Locked
- Exam fee
- $200 USD
- Level
- Associate
- Valid for
- 5 years
Domains covered on the exam 6
- Shells and Shell Scripting8%
- User Interfaces and Desktops4%
- Administrative Tasks12%
- Essential System Services12%
- Networking Fundamentals14%
- Security10%
- 1
What option to useradd creates a new user's hnome directory ana provisions it witn a set ot standard files? (specity only tne option name witnout any values or parameters.)
Show answer details
Correct answer: A
The -m option to useradd creates a new user home directory and provisions it with standard files from /etc/skel. This option ensures the user gets a properly initialized home directory with default configuration files like .bashrc and .profile. Without -m, useradd creates the user account but no home directory. Other options like -d specify the directory path, -s sets the shell, and -g sets the primary group, but only -m handles directory creation and provisioning.
- 2
Which of the following commands display the number of bytes transmitted and received via the ethO network interface? (Choose two.)
Show answer details
Correct answer: C, D
The "netstat -i" command displays network interface statistics including bytes transmitted and received for all interfaces including eth0. This shows comprehensive interface statistics in a tabular format. The -s option shows protocol statistics but not interface-specific byte counts, making netstat -i the correct choice for viewing interface transmission statistics.
The "ifconfig eth0" command displays detailed statistics for the eth0 interface, including bytes transmitted (TX) and received (RX). This provides interface-specific information including packet counts, error counts, and byte totals. While netstat -i shows all interfaces, ifconfig eth0 focuses specifically on the requested interface with detailed statistics.
- 3
Which of the following commands puts the output of the command date into the shell variable mydate?
Show answer details
Correct answer: C
The syntax "mydate=Sun 17 Aug 2025 21:07:29 EDT" uses command substitution to capture the output of the date command and store it in the shell variable mydate. The syntax is the modern POSIX-compliant method for command substitution. Alternative syntax like backticks Sun 17 Aug 2025 21:07:29 EDT also works but is preferred for readability and nesting. Simple assignment like mydate=date would store the literal string "date" rather than executing the command.
- 4
What is the systemd journal stored?
Show answer details
Correct answer: C
The systemd journal is stored in /run/log/journal/ for temporary volatile storage or /var/log/journal/ for persistent storage across reboots. By default, journald stores logs in /run/log/journal/ (tmpfs) which are lost on reboot unless persistent storage is configured. To make logs persistent, the /var/log/journal/ directory must exist and journald will automatically use it for permanent log storage.
- 5
A Linux server is configured with two network interfaces,
eth0andeth1, as shown in the diagram. An administrator needs to troubleshoot why a client at10.10.10.50cannot connect to a web server on the internet at203.0.113.10. After confirming the client can ping its gateway (10.10.10.1), which command would be the most effective next step to diagnose the path from the server towards the internet?graph TD subgraph Internet WebServer[Web Server 203.0.113.10] end subgraph Corporate Network Firewall[Firewall/Router 192.168.1.1] Server[Linux Server] Client[Client 10.10.10.50] end subgraph Server Interfaces eth0[eth0 192.168.1.100] eth1[eth1 10.10.10.10] end WebServer -- Public Internet --> Firewall Firewall --- eth0 Server --- eth0 Server --- eth1 eth1 --- ClientShow answer details
Correct answer: C
traceroute(ormtr) is the best tool for this scenario because it shows the hop-by-hop path that packets take from the source (the Linux server) to the destination. This will immediately reveal where the connection fails—whether it's at the local firewall (192.168.1.1) or some point further on the internet.pingonly tells you if the final destination is reachable, not where the failure occurs along the path.ssshows local listening sockets, which is irrelevant to outbound connectivity. - 6
Which standardized TCP port is used by HTTPS services?
Show answer details
Correct answer: D
Port 443 is the standardized TCP port for HTTPS (HTTP Secure) services, which provides encrypted HTTP communication using SSL/TLS. Port 25 is used for SMTP email, port 80 is for unencrypted HTTP, port 8080 is an alternative HTTP port often used for web proxies, and port 636 is for LDAPS (LDAP over SSL). Only port 443 is specifically designated for secure web traffic.
- 7
Which of the following options in the chrony configuration file define remote time sources? (Choose two.)
Show answer details
Correct answer: D, E
In chrony configuration, "pool" defines a pool of NTP servers from which chrony can select the best servers for time synchronization. This provides redundancy and automatic server selection from a group of time sources. The "source", "clock", and "remote" directives are not valid chrony configuration options for defining time sources.
In chrony configuration, "server" defines individual NTP servers for time synchronization, specifying exact server addresses to connect to. This works alongside "pool" to provide multiple time source options. The "source", "clock", and "remote" directives are not standard chrony configuration options for time sources.
- 8
What command, depending on its options, can display the open TCP connections, the routing tables, as well as network interface statistics? (Specify only the command without any path or paremeters.)
Show answer details
Correct answer: A
The netstat command displays network connections, routing tables, and network interface statistics depending on the options used. With -t it shows TCP connections, with -r it displays routing tables, and with -i it shows interface statistics. Commands like ss, ip, and ifconfig provide some similar functionality but netstat is the classic tool that combines all these network diagnostic capabilities in one command.
- 9
Which of the following protocols is related to the term open relay?
Show answer details
Correct answer: A
SMTP (Simple Mail Transfer Protocol) is directly related to open relay, which is a mail server configuration that allows anyone to send email through it without authentication. Open relays are security vulnerabilities that spammers exploit to send bulk email. POP3 and IMAP are mail retrieval protocols, NTP is for time synchronization, and LDAP is for directory services - none of these protocols involve mail relay functionality.
- 10
How many IP addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/26?
Show answer details
Correct answer: D
A /26 subnet provides 64 total IP addresses (2^6 = 64), but network and broadcast addresses cannot be assigned to hosts. The network address is 192.168.2.128 and broadcast is 192.168.2.191, leaving 62 usable host addresses (64 - 2 = 62). The other options (6, 12, 30, 126) represent different subnet sizes: /29 gives 6 hosts, /28 gives 14 hosts, /27 gives 30 hosts, and /25 gives 126 hosts.
