Answer: hostname
102-500 Practice Exam — 102-500: LPI Level 1
1. The question bank is cloud-based and updates automatically, with no need for re-acquisition.
2. Available in Chinese and English. It supports online practice, mock exams and PDF downloads.
3. You can practice questions via mini-program or desktop web page. The service is valid for one year.
4. For inquiries, please contact customer service via WeChat, WhatsApp or Line.
Sample questions
Topic 1 Question #1
FILL BLANK -Which command is used to set the hostname of the local system? (Specify only the command without any path or parameters.)
Analysis:
The correct answer is hostnamectl. On modern Linux systems following the systemd init standard, which is covered in the LPI 102-500 exam objectives, hostnamectl is the dedicated command used to set the persistent hostname of the local system without requiring path or additional parameters when only the command name is requested. While the older hostname command can temporarily set a hostname, it is not the standard command for persistent configuration expected for this exam question. Key Concept:
The LPI 102-500 exam covers systemd-based hostname management using the hostnamectl utility for persistent system hostname configuration. References:
systemd Handbook, hostnamectl man page, Linux Professional Institute 102-500 Exam Objectives, https://www.lpi.org/sites/default/files/2024-03/LPI-LPIC-1-Objectives-102-500-v5.0.pdf
Topic 1 Question #2
Which of the following is a valid IPv6 address?
Answer: C
Option Analysis:
A. Option A is incorrect because it contains the character 'g', which is not a valid hexadecimal digit (IPv6 only allows 0-9 and a-f/A-F).
B. Option B is incorrect because it uses two separate double colon (::) zero compression segments, which is not allowed in IPv6 addressing.
C. Option C is correct because it follows all IPv6 formatting rules: it uses valid hexadecimal digits, only one double colon for zero compression, and the correct colon separator.
D. Option D is incorrect because it uses percent signs (%) as separators instead of the required colons.
E. Option E is incorrect because it uses dots (.) as separators instead of the required colons.
Key Concept:
IPv6 addresses are 128-bit addresses represented as eight groups of four hexadecimal digits separated by colons, with exactly one double colon (::) allowed to compress one or more consecutive groups of zero digits.
References:
Internet Protocol Version 6 (IPv6) Addressing, IETF Tools. https://www.rfc-editor.org/rfc/rfc4291
Linux Documentation Project: IPv6 Addressing and Basic Configuration, Linux Foundation.
Topic 1 Question #3
FILL BLANK -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 parameters.)
Answer: netstat
Analysis:
The correct answer is netstat. Netstat is a legacy multi-purpose networking utility that can be configured with different options to output all three requested outputs: -a lists all open TCP connections, -r displays the kernel routing table, and -i outputs network interface statistics. While newer utilities like ss replace netstat on many modern distributions, only netstat matches the description of this question. Key Concept:
Netstat is a multi-purpose command-line network utility used to display a variety of network information including open connections, routing tables, and network interface statistics. References:
Linux man-pages project: netstat(8) man page, https://man7.org/linux/man-pages/man8/netstat.8.html
Linux Documentation Project: Linux Network Administrator's Guide, 3rd Edition
Topic 1 Question #4
FILL BLANK -Which command included in NetworkManager is a curses application which provides easy acces to the NetworkManager on the command line? (Specify only the command without any path or parameters.)
Answer: nmtui
Analysis:
The correct answer is nmtui. Nmtui is the official curses-based terminal front-end included with NetworkManager that allows interactive command-line management of network connections via a simple text user interface, unlike the full CLI tool nmcli which does not use a curses interface. Key Concept:
NetworkManager provides multiple user interfaces for network management, including a text-based curses application called nmtui for terminal-based interactive configuration. References:
NetworkManager Documentation - nmtui, https://networkmanager.dev/docs/api/latest/nmtui.html
Linux man-pages - nmtui(1)
Topic 1 Question #5
Which if the following tools, used for DNS debugging, reports not only the response from the name sever but also details about the query?
Answer: C
Option Analysis:
A. dnsq is an obsolete DNS query tool that does not output detailed query metadata alongside the name server response, so this option is incorrect.
B. hostname is a tool used to display or set the system's hostname, it does not perform DNS debugging or report DNS query/response details, so this option is incorrect.
C. dig (Domain Information Groper) is a standard DNS debugging tool that outputs full details of both the outgoing DNS query and the name server's response, so this option is correct.
D. nslookup (misspelled here as dnslookup) is a deprecated DNS lookup tool that primarily outputs only the resolved response, not detailed query metadata, so this option is incorrect.
E. zoneinfo is a system database storing time zone data, it is not a DNS debugging tool, so this option is incorrect.
Key Concept:
Common Linux DNS debugging utilities differ in output features, with dig being the standard modern tool that provides both query details and full name server responses for troubleshooting.
References:
dig(1) Linux Manual Page, Linux DNS Utilities Documentation
FAQ
How many practice questions are available for 102-500?
This question bank includes 120 102-500 practice questions covering single and multiple choice, each with answers and explanations.
Are 102-500 practice questions available in Chinese and English?
Yes, 102-500 practice questions are provided in both Chinese and English.
Can I try 102-500 practice questions for free?
Yes. Free sample questions are available on this page, and the full question bank is available after signing up on Zhangxuetu.