LPI 102-500 Exam Practice Questions (P. 1)
- Full Access (120 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
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.)
Which command is used to set the hostname of the local system? (Specify only the command without any path or parameters.)
Correct Answer:
hostname
hostname

The correct command to set the hostname of a local system in most modern Linux distributions is "hostnamectl." This tool is specifically designed for managing system hostnames with ease, while "systemctl" is generally used for controlling systemd units and doesn't provide functionality for setting hostnames. For achieving accuracy in exams or practical usage, opting for "hostnamectl" is essential.
send
light_mode
delete
Question #2
Which of the following is a valid IPv6 address?
- A2001:db8:0g21::1
- B2001::db8:4581::1
- C2001:db8:3241::1
- D2001%db8%9990%%1
- E2001.db8.819f..1
Correct Answer:
C
C

Option C is the valid IPv6 address because it conforms to IPv6 addressing rules. IPv6 addresses use hexadecimal numbers (0-9 and A-F). Furthermore, IPv6 permits the compression of consecutive zeros using a double colon, but this can only happen once in an address. Options with incorrect characters or multiple sets of double colons, therefore, are invalid.
send
light_mode
delete
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.)
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.)
Correct Answer:
netstat
netstat

Netstat is the correct command here. It's versatile and used to display various network-related information, such as TCP connections, routing tables, and interface statistics. Remember its useful options: -r for routing tables, -i for network interfaces, and -s for statistics. While 'ss' is a newer tool that can also show TCP connections and statistics, it doesn't provide the routing table details, which netstat does efficiently.
send
light_mode
delete
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.)
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.)
Correct Answer:
nmtui
nmtui

Absolutely, nmtui is the right pick for this question. This command is part of NetworkManager and leverages the curses library to create a text-based user interface directly from the command line. This fits perfectly with the requirement for a 'curses application' as originally specified in the question. The other related tool nmcli, though also a NetworkManager client, doesn't use curses and is more script-friendly, thus it doesn’t fit the bill here. So, stick with nmtui when you need that TUI aspect.
send
light_mode
delete
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?
- Adnsq
- Bhostname
- CdigMost Voted
- Ddnslookup
- Ezoneinfo
Correct Answer:
C
C

The dig command is particularly potent for DNS debugging because it not only fetches the response from the DNS server but also details the query itself. It displays information such as query time, server, opcode, status, etc., making it a complete tool for diagnosing DNS issues. Thus, it is the correct choice for the question asked, reflecting its capability to provide comprehensive details important for troubleshooting DNS configurations.
send
light_mode
delete
All Pages