102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - 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.)

Show Answer
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.

Discussion

8 comments
Sign in to comment
939393
Apr 19, 2021

No, ss is not correct because it doesn't show routing tables, so only netstat is the correct answer.

SScott
Oct 28, 2021

That is correct and netstat is the answer https://computingforgeeks.com/netstat-vs-ss-usage-guide-linux/

ledlong
Sep 26, 2021

Even though ss replaces netstat, it doesnt support a command to show the routing table. For netstat, to show the routing table, use option -r (for routing), to show all network interfaces, use option -i (for interfaces), to show statistics, use option -s (for statistics)

Thi_86
Aug 31, 2020

"ss" command can do it as well.

Janec20
Nov 10, 2021

Man of netstat -Print network connections, routing tables , interface statistics, masquerade connections, and multicast memberships.

Gotcha
Nov 1, 2020

On the Linux LPIC 1 says "You can also use the netstat or ss command to display statistics for all listening network ports." I think both answers are correct.

lucaverce
May 19, 2022

From the Linux MAN: NETSTAT(8) Linux System Administrator's Manual NAME netstat - Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

Pjnjo
Sep 27, 2023

Since 2011 in man netstat : NOTE This program is obsolete. Replacement for netstat is ss. Replacement for netstat -r is ip route. Replacement for netstat -i is ip -s link. Replacement for netstat -g is ip maddr.

Jos015
Oct 9, 2023

uff I Don't know. It's true, you're right but in the LPIC guide, netstat appears in the examples

il_biondo
Dec 6, 2022

"netstat" is correct as legacy command: it does all 3 requested features. Modern way commands assign TCP open connections and interface networks stats to "ss" and routing table to "ip" (with "route" option precisely).