• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Ping on Linux

January 8, 2024 by admin Category: How To

You are viewing the article How to Ping on Linux  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

X

This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

This article has been viewed 5,749 times.

This wikiHow teaches you how to test the connection between a Linux computer and another computer using the “ping” command. You can also use an enhanced version of the “ping” command called “traceroute” to see what different IP addresses a computer requests to be routed to reach another computer’s address.

Table of Contents

  • Steps
    • Using the ping command
    • Using the traceroute command
  • Advice
  • Warning

Steps

Using the ping command

Image titled Ping in Linux Step 2

Image titled Ping in Linux Step 2

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/2/2b/Ping-in-Linux-Step-2-Version-3.jpg/v4-728px-Ping-in-Linux- Step-2-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/2/2b/Ping-in-Linux-Step-2-Version-3.jpg/ v4-728px-Ping-in-Linux-Step-2-Version-3.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:” <div class=”mw-parser-output”></div>”}
Open Terminal on your computer. Click or double-click the Terminal application with the black frame icon with a white “>_” symbol inside, or you can press Ctrl + Alt + T .
Image titled Ping in Linux Step 3

Image titled Ping in Linux Step 3

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/13/Ping-in-Linux-Step-3-Version-3.jpg/v4-728px-Ping-in-Linux- Step-3-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/13/Ping-in-Linux-Step-3-Version-3.jpg/ v4-728px-Ping-in-Linux-Step-3-Version-3.jpg”,”smallWidth”:460,”smallHeight”:341,”bigWidth”:728,”bigHeight”:540,”licensing”:” <div class=”mw-parser-output”></div>”}
Enter the command “ping”. Enter ping along with the website or IP address you want to test the connection.

  • For example, to check the connection between Facebook and the computer, you need to enter ping www.facebook.com .
Image titled Ping in Linux Step 4

Image titled Ping in Linux Step 4

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/2/24/Ping-in-Linux-Step-4-Version-3.jpg/v4-728px-Ping-in-Linux- Step-4-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/2/24/Ping-in-Linux-Step-4-Version-3.jpg/ v4-728px-Ping-in-Linux-Step-4-Version-3.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:” <div class=”mw-parser-output”></div>”}
Press ↵ Enter . The “ping” command will be executed and start sending requests to the specific address.
Image titled Ping in Linux Step 5

Image titled Ping in Linux Step 5

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/b3/Ping-in-Linux-Step-5-Version-3.jpg/v4-728px-Ping-in-Linux- Step-5-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/b3/Ping-in-Linux-Step-5-Version-3.jpg/ v4-728px-Ping-in-Linux-Step-5-Version-3.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:” <div class=”mw-parser-output”></div>”}
See ping speed. To the right of each line that appears are numbers with the unit “ms”; this is the number of milliseconds it takes the target computer to respond to your data request.

  • The smaller the number of seconds, the faster the connection speed between the current computer and another computer/website.
  • When you ping the web address on Terminal, the second line will show the IP address of the website you are checking. You can take advantage of this to ping websites instead of IP addresses.
READ More:   How to Take Care of a Sick Dog
Image titled Ping in Linux Step 6

Image titled Ping in Linux Step 6

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/d6/Ping-in-Linux-Step-6-Version-3.jpg/v4-728px-Ping-in-Linux- Step-6-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/d/d6/Ping-in-Linux-Step-6-Version-3.jpg/ v4-728px-Ping-in-Linux-Step-6-Version-3.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:” <div class=”mw-parser-output”></div>”}
Stop the ping process. The “ping” command will execute indefinitely; to stop, press Ctrl + C . This will stop the command and display the ping results below the “^C” line.

  • To see the average time it takes another computer to respond, look at the number after the first slash (/) in the line below “# packets transmitted, # received”.

Using the traceroute command

Image titled Ping in Linux Step 8

Image titled Ping in Linux Step 8

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/3/37/Ping-in-Linux-Step-8.jpg/v4-728px-Ping-in-Linux-Step-8. jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/3/37/Ping-in-Linux-Step-8.jpg/v4-728px-Ping-in-Linux-Step- 8.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:”<div class=”mw-parser-output”></div> “}
Open Terminal on your computer. Click or double-click the Terminal application with the black frame icon with a white “>_” symbol inside, or press Ctrl + Alt + T .
Image titled Ping in Linux Step 9

Image titled Ping in Linux Step 9

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/8/88/Ping-in-Linux-Step-9.jpg/v4-728px-Ping-in-Linux-Step-9. jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/8/88/Ping-in-Linux-Step-9.jpg/v4-728px-Ping-in-Linux-Step- 9.jpg”,”smallWidth”:460,”smallHeight”:343,”bigWidth”:728,”bigHeight”:543,”licensing”:”<div class=”mw-parser-output”></div> “}
Enter the command “traceroute”. Enter traceroute along with the IP address or website you want to trace.

  • For example, to trace the route from your router to the Facebook server, we need to enter traceroute www.facebook.com .
Image titled Ping in Linux Step 10

Image titled Ping in Linux Step 10

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/9/98/Ping-in-Linux-Step-10.jpg/v4-728px-Ping-in-Linux-Step-10. jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/9/98/Ping-in-Linux-Step-10.jpg/v4-728px-Ping-in-Linux-Step- 10.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight”:541,”licensing”:”<div class=”mw-parser-output”></div> “}
Press ↵ Enter . The command “traceroute” will be executed.
  • Image titled Ping in Linux Step 11

    Image titled Ping in Linux Step 11

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/c/c5/Ping-in-Linux-Step-11.jpg/v4-728px-Ping-in-Linux-Step-11. jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/c/c5/Ping-in-Linux-Step-11.jpg/v4-728px-Ping-in-Linux-Step- 11.jpg”,”smallWidth”:460,”smallHeight”:348,”bigWidth”:728,”bigHeight”:550,”licensing”:”<div class=”mw-parser-output”></div> “}
    See the route you requested. To the left of each line that appears is the IP address of the router through which your trace request was processed. You’ll also see the number of milliseconds the process takes to happen on the right side of the line.

    • If an asterisk line appears in one of the routes, it means that the server the computer intends to connect to has timed out, in which case a different address will be tried.
    • The traceroute command will time out after reaching the destination.
  • Advice

    • The “ping” command as shown in this article can also be used verbatim on Command Prompt (Windows) and Terminal (Mac).
    READ More:   How To Cure Red Eye Quickly

    Warning

    • Not all websites allow us to ping their real address, so ping results are sometimes inaccurate.
    X

    This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

    The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

    This article has been viewed 5,749 times.

    This wikiHow teaches you how to test the connection between a Linux computer and another computer using the “ping” command. You can also use an enhanced version of the “ping” command called “traceroute” to see what different IP addresses a computer requests to be routed to reach another computer’s address.

    Thank you for reading this post How to Ping on Linux at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « Top 999+ save the date images wedding kerala – Amazing Collection save the date images wedding kerala Full 4K
    Next Post: Top 999+ door mat design images – Amazing Collection door mat design images Full 4K »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge