commands

ping — Probe ICMP echo

Sends ICMP echo requests; -c bounds count and -W specifies reply wait in iputils. Failure can be permissions, filtering or loss. Loopback only here. Use a fresh private workspace; live operations are VM-only.

Formal Syntax & Structure

linux syntaxlinux
ping [OPTIONS] DESTINATION

Parameters & Attributes

NameTypeDescription
DESTINATIONoperandOwned lab endpoint
-coptionCount
-WoptionReply wait

Return Value

exit status and output

Sends ICMP echo requests; -c bounds count and -W specifies reply wait in iputils. Failure can be permissions, filtering or loss. Loopback only here.

Working Example

Example Snippetlinux
ping -c 1 -W 1 127.0.0.1
Linux Reference