Find out the current ping of your computer by installing 2ping on Ubuntu 22.04 Jammy Jellyfish or 20.04 Focal fossa.
On the Internet, your computer communicates with servers. For this purpose, data packets are sent back and forth. Depending on the quality of the Internet connection, this is very fast or takes longer. You can tell by how much time elapses between a request from your computer and the server’s response. For example, when you visit a website, it is a request to a server. Its answer is the view of the web page shown in your browser.
The time that elapses between request and response is latency. It is also called ping and is measured in milliseconds. The higher the ping, the more time it takes to send a data packet to the server and back to the computer. So a low ping is better. This is particularly important so complex applications such as games or real-time video calls run smoothly.
Although Ubuntu Linux comes with a default pinging tool, if you want a third-party one with more features, try 2ping.
What is 2ping?
2ping is a bi-directional ping utility. It uses 3-way pings (akin to TCP SYN, SYN/ACK, ACK) and after-the-fact state comparison between a 2ping listener and a 2ping client to determine which direction packet loss occurs.
It can work on any computer with Python 3, version 3.5 or higher. Linux, FreeBSD, OpenBSD, Mac OS X, and Windows are supported operating system
Steps to install 2ping on Ubuntu 22.04 0r 20.04
The commands given here will also work on other Linux operating systems based on Ubuntu. Such as Linux Mint, POP OS, and more…
1. Update Ubuntu Linux
On your Ubuntu Linux open command terminal, you can use the keyboard shortcut for that- Ctrl+Alt+T. After that run the system update command to rebuild the APT package index cache.
sudo apt update
2. Install 2ping on Ubuntu 22.04 or 20.04
The packages to install 2ping are available via the default system repository of Ubuntu, therefore, just use the APT package manager and execute its installation command.
sudo apt install 2ping
3. To check the version
Once the installation is completed to check the version of this pinging utility run the given command in your Terminal.
4. How to use 2ping
Just like the default pining tool of Ubuntu, the usage of 2ping will be similar. On your command terminal type
2ping , and the remote or local computer address that you want to ping.
To know the options available to use with this utility, you can use:
Whereas, to know how to use the available options, see the man page of the tool.
5. How to update
If there is some update available for the 2ping utility via the default system repository of Ubuntu then running the system update command will install that.
sudo apt update && sudo apt upgrade
6. Uninstall 2ping from Ubuntu 22.04 or 20.04
Well, there are chances you won’t like the tool after the installation and usage. If that is the case, then here is the command to completely remove 2Ping from your Ubuntu 22.04 or 20.04 systems.
sudo apt autoremove --purge 2ping
⇒ What option to use for ping constantly until you stop it?
⇒ How to change and Set the default terminal in Ubuntu or Debian
⇒ Install & play the 2048 game on Ubuntu 22.04 or 20.04 LTS Linux
⇒ Set Terminator as the default terminal in Ubuntu 22.04 or 20.04