CompTIA Linux+ (XK0-004) — Question 11
A junior Linux administrator is trying to verify connectivity to the remote host host1 and display round-trip statistics for ten ICMP requests.
Which of the following commands should the administrator execute?
Answer options
- A. ping ג€"c 10 host1
- B. traceroute ג€"c 10 host1
- C. netstat host1
- D. pathping ג€"c 10 host1
Correct answer: A
Explanation
The correct answer is A, as the 'ping' command with the '-c 10' option sends ten ICMP echo requests and reports the round-trip time. Option B, 'traceroute', is used to trace the path packets take to the destination but does not provide round-trip statistics. Option C, 'netstat', is not used for testing connectivity or measuring round-trip times. Option D, 'pathping', combines features of 'ping' and 'traceroute' but is not the simplest option for just sending ICMP requests.