For those that don’t know, to “ping” is to test the connection between two computers in the form of response time. The lower the number of milliseconds, the higher the connection speed. For Linux users new to the system or those simply seeking a refresher course, read on to learn the step-by-step process for how to both start and stop ping on your Linux computer.
How to Ping in Linux
To ping an external computer using the Linux terminal, just follow these 3 steps:
- First, in order to use the ping command, you need to have a target. After all, you’re testing the response time between your system and another system. This means you will need to enter a URL or IP Address for the system you are trying to ping. To test this, we’ll use www.hivelocity.net.
- After opening a terminal window, you’ll enter the ping command followed by the URL/IP Address you are attempting to contact. For example:
- When entered correctly, a response will be printed to the terminal showing the URL pinged, its IP Address, and at the far right of the line, a response time in milliseconds. The lower this number, the faster the response.
How to Stop Ping in Linux
You can easily stop any currently running command in Linux using the command Ctrl+C. Users familiar with the Windows operating system will recognize this as the “copy” command, however, on Linux, Ctrl+C has historically been used to cancel commands. This can often be a source of confusion for new users.
*Note: Curious how to actually copy and paste in the Linux terminal? Check out our post, How to Copy and Paste in Linux Terminal.
- How to Check the Apache Version on a Linux Dedicated cPanel Server
- How to Change a Password in Linux
- How to Check if Your Linux Server is Under DDoS Attack
Don’t see what you’re looking for? Use the search bar at the top to search our entire Knowledge Base.
The Hivelocity Difference
With best-in-class customer service, affordable pricing, a wide-range of fully-customizable options, and a network like no other, Hivelocity is the hosting solution you’ve been waiting for.