Linux ping command

If you wish to test your connection to a server from your Linux system you can use the Linux ping command. In this article, we’ll show the basic usage of the Linux ping command and it’s most used part ping -t. This is a great article for both beginners and experts who wish to master the Linux ping command.

How ping works

ping stands for Packet Internet Groper. It uses the ICMP (Internet Control Message Protocol) to send an echo request message. If the listening server can answer it sends an echo message back, displaying information to the user.

Basic usage of Linux ping command

ping exampleDomain.com
ping 8.8.8.8

Output

The number of bytes received // 64 bytes from...
The IP address of the domain // 172.217.17.206
Sequence Number // 1, 2, 3...
The response time // 3.04, 3.04, 3.02

Ping limit

You can set the number of times ping is run. By default, it runs until stopped

ping -c 3 exampleDomain.com

Setting ping ttl

ping -t 60 google.com
  • 0 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

مقالات مشابهة

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

Linux top command

If you wish to monitor the performance of your VPS or Dedicated server and track processes, RAM...

Linux file command

The file command is used to check a file’s type and contents in Linux environment. It is most...

Linux export command

When you’re managing your shell’s variables and you wish to save them to your environment you can...

Linux su command

The su command is most commonly used to switch to another user. You will then be able to run...