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.
ping
ping
ping
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.
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.
For the broader concept behind this mapping, read Linux networking for Windows users.
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 option | Use |
|---|---|
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 |
ping6 | Ping 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.
| Distribution | Package manager / base | Equivalent command | Difference 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
Keep learning