Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Ping on Linux: Clear Instructions

Review Ping on Linux through the main facts, background, key details, and practical implications in this clear overview for readers.

Published: · 5 minutes read
Table of Contents

Use the Ping Command

How to Ping on Linux Picture 1

Key Takeaways About Ping on Linux

  1. Use the ping command Open Terminal on your computer.
  2. Click or double-click the Terminal app icon with a black frame with a white ">_" symbol inside, or you can press Ctrl + Alt + T.
  3. Enter ping along with the website or IP address where you want to test the connection.

Key Details About Ping on Linux

Open Terminal on your computer. Click or double-click the Terminal app icon with a black frame with a white ">_" symbol inside, or you can press Ctrl+ Alt+ T.

How to Ping on Linux Picture 2

Enter the "ping" command. Enter pingalong with the website or IP address where you want to test the connection.

For example, to test the connection between Facebook and your computer, you need to enter ping www.facebook.com.

How to Ping on Linux Picture 3

Press ? Enter. The "ping" command will be executed and begin sending requests to the specific address.

How to Ping on Linux Picture 4

See ping speed. To the right of each line appear numbers with "ms" units; 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 a web address in Terminal, the second line will display the IP address of the website you are testing. You can take advantage of this to ping websites instead of IP addresses.

How to Ping on Linux Picture 5

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".

Use the Traceroute Command

How to Ping on Linux Picture 6

Open Terminal on your computer. Click or double-click the Terminal app icon with a black frame with a white ">_" symbol inside, or press Ctrl+ Alt+ T.

How to Ping on Linux Picture 7

Enter the command "traceroute". Enter traceroutealong with the IP address or website you want to track.

For example, to trace the route from your router to the Facebook server, we need to enter traceroute www.facebook.com.

How to Ping on Linux Picture 8

Press ? Enter. The "traceroute" command will be executed.

How to Ping on Linux Picture 9

View the route you requested. To the left of each line that appears is the IP address of the router through which your tracing request is processed. You'll also see the number of milliseconds the process took to happen to the right of the line.

If an asterisk appears in one of the routes, it means that the server to which the computer intended to connect has timed out, in which case another address will be tried.

The traceroute command will time out after reaching the destination.

FAQ

How do you Ping on Linux?

Use the ping command Open Terminal on your computer.

What should you check before working with Ping on Linux?

Click or double-click the Terminal app icon with a black frame with a white ">_" symbol inside, or you can press Ctrl + Alt + T .

What can you do if the first method does not work?

Enter ping along with the website or IP address where you want to test the connection.

David Pac - IT Expert and Technology Writer

Written by David Pac

IT Expert & Technology Writer

David Pac has 20+ years of experience in software development, Windows troubleshooting, computer hardware diagnostics, and system administration.

Expertise: Windows | Software | Hardware | System Troubleshooting

Was this article helpful?

Your feedback helps us improve.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.