Send four ICMP probes to a host
Build a paste-ready command, then review its compatibility and effects before running it.
Complete required fields to copy the generated command.
Compatibility
Linux + macOSVerified for Linux, macOS using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementspingping must be installed and available on PATH.Network accessThe target must be reachable from the current environment.
Version supportping Current supported releasesVerified for linux, macos using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsPING example.com (93.184.216.34): 56 data bytesRepresentative successful output; values vary with the selected target and system state.
Known errorsping: command not foundping is missing or is not available on PATH.
Verifyping -c 4 {{host}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01pingCommandRuns the ping stage of this one-liner.
02-cOptionConfigures ping with the -c option.
034ArgumentPasses 4 to ping.
04<host>ParameterA value supplied in the Fill parameters section.
Example input
ping -c 4 example.com
Example output
PING example.com (93.184.216.34): 56 data bytes
64 bytes from 93.184.216.34: icmp_seq=0 ttl=55 time=18.7 ms
64 bytes from 93.184.216.34: icmp_seq=1 ttl=55 time=19.1 ms
64 bytes from 93.184.216.34: icmp_seq=2 ttl=55 time=18.5 ms
64 bytes from 93.184.216.34: icmp_seq=3 ttl=55 time=18.9 ms
--- example.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss
Illustrative output — exact values vary by system and data.
Runbooks
Official sources