How to Ping in Linux

Method 1 of 2:

Using the Ping Command

  1. How to Ping in Linux Picture 1
    Open Terminal on your computer. Click or double-click the Terminal app icon—which resembles a black box with a white ">_" in it—or press Ctrl+Alt+T at the same time.
  2. How to Ping in Linux Picture 2
    Type in the "ping" command. Type in ping followed by the web address or IP address of the website you want to ping.
    1. For example, to ping Facebook, you would type in ping www.facebook.com.
  3. How to Ping in Linux Picture 3
    Press Enter. Doing so will run your "ping" command and begin sending requests to the address.
  4. How to Ping in Linux Picture 4
    Review the ping speed. On the far-right side of each line that appears, you'll see a number followed by "ms"; this is the number of milliseconds it takes for the target computer to respond to your data request.
    1. The lower the number, the faster the connection between your computer and the other computer or website.
    2. When you ping a web address in the terminal, the second line shows the IP address of the website you are pinging. You can use that to ping a website instead of the IP address.
  5. How to Ping in Linux Picture 5
    Stop the ping process. The "ping" command will run indefinitely; to stop it, press Ctrl+C. This will cause the command to stop running and display the results of the ping below the "^C" line.
    1. To see the average time it took for the other computer to respond, look at the number after the first slash (/) in the line below the "# packets transmitted, # received" section.
Method 2 of 2:

Using the Traceroute Command

  1. How to Ping in Linux Picture 6
    Open Terminal on your computer. Click or double-click the Terminal app icon—which resembles a black box with a white ">_" in it—or press Ctrl+Alt+T at the same time.
  2. How to Ping in Linux Picture 7
    Type in the "traceroute" command. Type in traceroute followed by the IP address or the website you want to trace.
    1. For example, to trace the route from your router to a server for Facebook, you would type in traceroute www.facebook.com.
  3. How to Ping in Linux Picture 8
    Press Enter. This will run the "traceroute" command.
  4. How to Ping in Linux Picture 9
    Review the route your request takes. In the left-hand side of each new line that appears, you should see the IP address of a router through which your trace request is processed. You'll also see the number of milliseconds it took for the process to occur on the far-right side of the line.
    1. If you see a line of asterisks appear for one of the routes, it means that the server to which your computer was supposed to connect timed out, thus resulting in a different address being tried.
    2. The traceroute command will time out after it reaches its destination.
4 ★ | 2 Vote

May be interested

  • How to Create an ISO File in LinuxPhoto of How to Create an ISO File in Linux
    this wikihow teaches you how to turn a group of files into an iso file on a linux computer. you'll use the linux command line to do this. gather your iso files in the home directory. place any files that you want to turn into an iso file...
  • How to Change the Root Password in LinuxPhoto of How to Change the Root Password in Linux
    this wikihow teaches you how to change the linux root password if you have the current password or if you don't have access to the current root password. open a terminal window. to do so, press ,https://help.ubuntu.com/community/usingthe...
  • How to Find a File in LinuxPhoto of How to Find a File in Linux
    finding a file in a linux system can be difficult if you don't know how. the best way to find files is to utilize several different terminal commands. mastering these commands can give you complete control over your files, and they are...
  • How to Take a Screenshot in LinuxPhoto of How to Take a Screenshot in Linux
    taking a screenshot on linux isn't quite as straightforward as it is on other operating systems, such as [https://www.wikihow.com/category:windows windows] or [https://www.wikihow.com/category:mac macos]. this is because there is no...
  • How to Change the Timezone in LinuxPhoto of How to Change the Timezone in Linux
    this wikihow teaches you how to change the time zone on a linux computer. you can change the timezone on every linux distribution by using the command line, or you can use the selection menu in the command line for different linux...
  • How to Add or Change the Default Gateway in LinuxPhoto of How to Add or Change the Default Gateway in Linux
    your default gateway is the ip address of your router. typically this is automatically detected by your operating system during installation, but you may need to change it. this is especially true if you have multiple network adapters or...