Lpic 2 Linux Engineer · Free Practice Question Medium
Question 7
- A ss -tulnp
- B ping -c 4 8.8.8.8
- C route -n
- D ip link show
Reveal correct answer
Correct answer: A
A. The command "ss -tulnp" is used to list all current network connections, including the remote IP addresses and ports. It shows both listening and non-listening sockets, making it a suitable choice for identifying any suspicious connections to unknown external hosts.
B. The command "ping -c 4 8.8.8.8" is used to send ICMP echo requests to a specific IP address to check for connectivity. It does not provide information about current network connections or remote IP addresses and ports, so it is not the correct choice for listing all network connections.
C. The command "route -n" is used to display the kernel routing table. It shows the IP routing table, but it does not provide information about current network connections or remote IP addresses and ports, so it is not the correct choice for listing all network connections.
D. The command "ip link show" is used to display information about network interfaces. It shows details about the network interfaces on the system, but it does not provide information about current network connections or remote IP addresses and ports, so it is not the correct choice for listing all network connections.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
