Terminal Dojo
Help العربية Sign inGet started

Command library / ping

ping

BashDraft — pending expert review3 practice missions

Test whether a host is reachable

Sends ICMP echo requests to a host and reports whether (and how fast) it answers. On Linux ping runs forever until you stop it (Ctrl+C) unless you limit the count with -c — worth remembering before you ping something in a live demo.

Practice ping

Usage

ping [-c count] [-i interval] host

Options and flags

Examples

Common mistakes

ping -c 4 ping -c 4 8.8.8.8

ping always needs a target host or IP address as its last argument — without one there's nothing to send packets to.

Related commands

dignetstat