ping

Test Network Connectivity

What Does It Do?

The ping command tests if you can reach another computer or website. It's like knocking on someone's door to see if they're home and how long it takes them to answer.

It sends small packets of data to a target and measures how long it takes to get a response back. This helps you check if your internet is working, if a website is online, or if there are delays in your connection.

Advertisement

[ Insert Google AdSense Banner Code Here ]

When Should I Use It?

Test Internet Connection

Check if you're connected to the internet (e.g., ping google.com).

Measure Network Speed

See how fast data travels to a server (latency in milliseconds).

Check Website Availability

Verify if a website is up and running or down.

Troubleshoot Local Network

Test connection to your router or other local devices.

Common Commands

ping google.com

Send 4 ping packets to Google to test your internet connection.

ping 127.0.0.1

Test localhost connection (ping your own machine).

ping -n 10 google.com

Send exactly 10 ping packets instead of the default 4.

ping 8.8.8.8

Ping Google's public DNS server - good for testing basic connectivity.

ping /w 2000 www.google.com

Wait 2000ms (2 seconds) for each reply before timing out.

Try It Yourself

Practice ping commands in the interactive terminal below: