mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-08 09:57:29 +00:00
39 lines
842 B
Plaintext
39 lines
842 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, windows]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ping
|
|
|
|
> Send ICMP ECHO_REQUEST packets to network hosts.
|
|
> Unlike Unix-like systems, Windows `ping` sends only 4 packets by default.
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/ping>.
|
|
|
|
- Ping a host 4 times:
|
|
|
|
`ping {{host}}`
|
|
|
|
- Ping a host a specific number of times:
|
|
|
|
`ping -n {{count}} {{host}}`
|
|
|
|
- Ping a host continuously (until stopped with `<Ctrl c>`):
|
|
|
|
`ping -t {{host}}`
|
|
|
|
- Set the timeout in milliseconds to wait for each reply:
|
|
|
|
`ping -w {{milliseconds}} {{host}}`
|
|
|
|
- Set the buffer size of the ping packet in bytes:
|
|
|
|
`ping -l {{bytes}} {{host}}`
|
|
|
|
- Ping a host using a specific source IP address:
|
|
|
|
`ping -S {{source_ip}} {{host}}`
|
|
|
|
- Resolve address to hostname:
|
|
|
|
`ping -a {{host}}`
|