ping -c 3 -W 1 192.168.1.1

Category: Local Network & Public Hosting

ping -c 3 -W 1 192.168.1.1

Send three quick pings with a one-second deadline

The -c 3 flag limits the test to three echo requests and -W 1 caps the wait for each reply at one second, so the whole check finishes in a few seconds. This is the polite, script-friendly way to probe a host that may be down. A clean three replies means the target is reachable and responding.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.