mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 02:52:51 +00:00
Update cheatsheets
This commit is contained in:
33
ping
Normal file
33
ping
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ping
|
||||
|
||||
> Send ICMP ECHO_REQUEST packets to network hosts.
|
||||
> More information: <https://manned.org/ping>.
|
||||
|
||||
- Ping host:
|
||||
|
||||
`ping {{host}}`
|
||||
|
||||
- Ping a host only a specific number of times:
|
||||
|
||||
`ping -c {{count}} {{host}}`
|
||||
|
||||
- Ping host, specifying the interval in seconds between requests (default is 1 second):
|
||||
|
||||
`ping -i {{seconds}} {{host}}`
|
||||
|
||||
- Ping host without trying to lookup symbolic names for addresses:
|
||||
|
||||
`ping -n {{host}}`
|
||||
|
||||
- Ping host and ring the bell when a packet is received (if your terminal supports it):
|
||||
|
||||
`ping -a {{host}}`
|
||||
|
||||
- Also display a message if no response was received:
|
||||
|
||||
`ping -O {{host}}`
|
||||
Reference in New Issue
Block a user