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.)
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)
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.
"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).
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
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.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
939393
Highly Voted 2 years, 9 months agoledlong
Highly Voted 2 years, 3 months agoPjnjo
Most Recent 3 months, 3 weeks agoJos015
3 months, 1 week agoil_biondo
1 year, 1 month agolucaverce
1 year, 8 months agoJanec20
2 years, 2 months agoGotcha
3 years, 2 months agoThi_86
3 years, 4 months ago