← All commands
Topic hub Networking
Windows Linux Networking Expanded guide

Windows ping equivalent in Linux

Sends ICMP echo requests to test if a host is reachable. Same name, but runs forever by default on Linux.

Windows ping
→
Linux equivalents
Debian/Ubuntu same command
ping
Fedora same command
ping
Arch same command
ping

Overview

What this command does

On Windows, "ping" is used to test network connectivity. On Linux, the closest practical mapping shown here is "ping". Sends ICMP echo requests to test if a host is reachable. Same name, but runs forever by default on Linux. This reference is grouped under Networking.

Migration tip: On Windows, ping sends 4 packets then stops. On Linux, <strong>ping runs forever</strong> until you press <kbd>Ctrl+C</kbd>. Use <code>-c 4</code> to match Windows behavior.

Windows → Linux context

What changes when you use this on Linux?

Same name, different environment

The basic command name ping is familiar on both platforms, but Linux path rules, quoting, permissions and available options can still change the result.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

Command-specific caution

On Linux, ping runs indefinitely. Always use -c N to limit packet count, or press Ctrl+C to stop it.

Practical tasks

Common use cases

Test network connectivity

Sends ICMP echo requests to test if a host is reachable. Same name, but runs forever by default on Linux.

ping -c 4

Send only 4 packets (like Windows default)

ping -i 2

Wait 2 seconds between packets

ping -s 1000

Use larger packet size

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

ping google.com
ping -c 4 google.com
ping -c 4 192.168.1.1

Walkthrough

Examples with explanations

# Windows: ping google.com  (sends 4 packets, stops)
ping google.com             # runs FOREVER — press Ctrl+C to stop
ping -c 4 google.com       # send exactly 4 packets, then stop
ping -c 4 192.168.1.1     # ping your router by IP

Reference

Common options and variations

Command or optionUse
ping -c 4Send only 4 packets (like Windows default)
ping -i 2Wait 2 seconds between packets
ping -s 1000Use larger packet size
ping6Ping using IPv6

Distro differences

Debian/Ubuntu vs Fedora vs Arch

Debian/Ubuntu, Fedora and Arch all use "ping" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command ping Same command on this distribution.
Fedora same command ping Same command on this distribution.
Arch same command ping Same command on this distribution.

Important

What to watch out for

On Linux, ping runs indefinitely. Always use -c N to limit packet count, or press Ctrl+C to stop it.

Keep learning

Related Networking commands