Online Linux Terminal Logo
OnlineLinuxTerminal
Réseau et transfertCLI Manual

$ping

Send ICMP ECHO_REQUEST to network hosts to test connectivity and latency.

Syntaxe de la commandePOSIX Standard
ping [OPTIONS] DESTINATION
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

`ping` is the fundamental network diagnostics tool used to verify whether a remote host or IP address is reachable across an IP network. It measures the round-trip time (RTT) for packets sent from the local machine to a destination and reports packet loss percentages.

Options et drapeaux courants

Flag / OptionDescription
-c [count]Stop sending ECHO_REQUEST packets after count packets are sent.
-i [interval]Wait interval seconds between sending each packet (default 1s).
-W [timeout]Time to wait for a response in seconds before timing out.

Exemples pratiques du monde réel

#1Ping a host with limited count
ping -c 4 onlinelinuxterminal.com

Sends exactly 4 ICMP packets to test network latency and packet loss.