exam questions

Exam 102-500 All Questions

View all questions & answers for the 102-500 exam

Exam 102-500 topic 1 question 3 discussion

Actual exam question from LPI's 102-500
Question #: 3
Topic #: 1
[All 102-500 Questions]

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 Suggested Answer Hide Answer
Suggested Answer: netstat

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
939393
Highly Voted 2 years, 9 months ago
No, ss is not correct because it doesn't show routing tables, so only netstat is the correct answer.
upvoted 12 times
...
ledlong
Highly Voted 2 years, 3 months ago
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)
upvoted 9 times
...
Pjnjo
Most Recent 3 months, 3 weeks ago
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.
upvoted 2 times
Jos015
3 months, 1 week ago
uff I Don't know. It's true, you're right but in the LPIC guide, netstat appears in the examples
upvoted 1 times
...
...
il_biondo
1 year, 1 month ago
"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).
upvoted 1 times
...
lucaverce
1 year, 8 months ago
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
upvoted 2 times
...
Janec20
2 years, 2 months ago
Man of netstat -Print network connections, routing tables , interface statistics, masquerade connections, and multicast memberships.
upvoted 3 times
...
Gotcha
3 years, 2 months ago
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.
upvoted 2 times
...
Thi_86
3 years, 4 months ago
"ss" command can do it as well.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago