Which two tasks is the ping command used for? (Choose two.)
Choose 2 answers
Show the answer
Correct answersE. Measuring the round-trip time to a remote hostF. Testing whether a remote host answers ICMP echo requests
AWhy not this: Fetching web content over HTTP is done with curl; ping does not use HTTP.
BWhy not this: DNS record queries are done with dig; ping only resolves a name to reach it.
CWhy not this: Copying files over SSH is done with scp or sftp; ping transfers no files.
DWhy not this: Assigning addresses is done with the ip command; ping only tests connectivity.
EWhy this is right: ping reports the round-trip time of each echo reply, in milliseconds.
FWhy this is right: ping sends ICMP echo requests and reports whether replies come back, which tests basic reachability.
ping sends ICMP echo requests, which shows whether a host is reachable and how long replies take. Retrieving web content is curl's job, not ping's.