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.)
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.)
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.
No, ss is not correct because it doesn't show routing tables, so only netstat is the correct answer.
That is correct and netstat is the answer https://computingforgeeks.com/netstat-vs-ss-usage-guide-linux/
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)
"ss" command can do it as well.
Man of netstat -Print network connections, routing tables , interface statistics, masquerade connections, and multicast memberships.
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.
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
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.
uff I Don't know. It's true, you're right but in the LPIC guide, netstat appears in the examples
"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).