LPI Level 1

Here you have the best LPI 102-500 practice exam questions

  • You have 120 total questions to study from
  • Each page has 5 questions, making a total of 24 pages
  • You can navigate through the pages using the buttons at the bottom
  • This questions were last updated on December 3, 2024
Question 1 of 120

FILL BLANK -

Which command is used to set the hostname of the local system? (Specify only the command without any path or parameters.)

    Correct Answer:

    The command to set the hostname of the local system is 'hostname'. This command allows you to both display and set the system's hostname. However, note that if you want to permanently change the hostname on a modern system using systemd, 'hostnamectl' with the 'set-hostname' parameter might be more appropriate. Without additional context or parameters, 'hostname' is the direct answer to the question.

Question 2 of 120

Which of the following is a valid IPv6 address?

    Correct Answer: C

    A valid IPv6 address consists of eight groups of four hexadecimal digits, separated by colons. Hexadecimal digits include 0-9 and A-F. Address compression allows for the omission of consecutive groups of zeros through the use of a double colon (::), but this can only be used once in an address. Option C, '2001:db8:3241::1', adheres to these rules with correct use of valid hexadecimal digits and the appropriate format, making it a valid IPv6 address.

Question 3 of 120

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.)

    Correct Answer:

    The command that can display open TCP connections, routing tables, as well as network interface statistics is 'netstat'. The 'netstat' command is known to provide detailed information about network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. While there are more modern alternatives such as 'ss' for socket statistics and 'ip' for managing routing tables and other network configurations, 'netstat' is the traditional command that encompasses all the features mentioned in the question.

Question 4 of 120

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.)

    Correct Answer:

    The correct command is 'nmtui'. 'Nmtui' is a curses-based application part of NetworkManager, designed to provide an easy-to-use text user interface (TUI) for managing network connections directly from the command line. This interface is built using the curses programming library, making it suitable for the context described in the question. Although 'nmcli' is also a NetworkManager command-line tool, it does not use the curses library and is more focused on direct command scripting rather than providing a text-based interactive interface.

Question 5 of 120

Which if the following tools, used for DNS debugging, reports not only the response from the name sever but also details about the query?

    Correct Answer: C

    The tool for DNS debugging that reports not only the response from the name server but also details about the query is 'dig'. 'dig' (Domain Information Groper) is commonly used for inspecting the DNS and provides detailed output about the query, including the question, answer, authority, and additional sections.