Forrest logo
tool overview
On this page you find all important commands for the CLI tool ping. If the command you are looking for is missing please ask our AI.

ping

Ping works by sending one or more ICMP (Internet Control Message Protocol) Echo Request packages to a specified destination IP on the network and waits for a reply. When the destination receives the package, it responds with an ICMP echo reply.

List of commands for ping:

  • network:ping Check if a server answers via ping.
    $ ping ${domain-without-protocol}
    try on your machine
    explain this command
  • ping:tldr:3a05c ping: Ping `host` and prints the time a packet was received (this option is an Apple addition).
    $ ping --apple-time "${host}"
    try on your machine
    explain this command
  • ping:tldr:5b291 ping: Also display a message if no response was received.
    $ ping -O ${host}
    try on your machine
    explain this command
  • ping:tldr:666e0 ping: Ping a host only a specific number of times.
    $ ping -c ${count} ${host}
    try on your machine
    explain this command
  • ping:tldr:71c78 ping: Ping host and ring the bell when a packet is received (if your terminal supports it).
    $ ping -a ${host}
    try on your machine
    explain this command
  • ping:tldr:b172a ping: Ping host, specifying the interval in seconds between requests (default is 1 second).
    $ ping -i ${seconds} ${host}
    try on your machine
    explain this command
  • ping:tldr:f59f8 ping: Ping host without trying to lookup symbolic names for addresses.
    $ ping -n ${host}
    try on your machine
    explain this command
  • ttyplot:tldr:c258b ttyplot: Parse the output from `ping` and visualize it.
    $ ping ${8-8-8-8} | sed -u '${s-^-*time=--g; s- ms--g}' | ttyplot -t "${ping to 8-8-8-8}" -u ${ms}
    try on your machine
    explain this command
tool overview