Linux Commands Helper
💬 Your AI-powered Linux assistant
ping Command - Network Connectivity Test
The ping command is used to test the reachability of a host on an IP network and to measure the round-trip time for messages sent from the originating host to a destination computer.
Syntax
ping [options] destination
Examples
ping 8.8.8.8
Ping Google's public DNS server to test Internet connectivity.
ping -c 4 www.example.com
Send 4 ICMP echo requests to www.example.com.
ping -i 0.5 192.168.1.1
Ping 192.168.1.1 every 0.5 seconds.
Notes
- Root privileges may be required for some options or on some systems.
- Use
-c
to limit the number of pings sent. - ICMP packets may be blocked by firewalls, resulting in no response.