Categories: Ubuntu

Ping command in Ubuntu 22.04

In Linux-based systems such as Ubuntu 22.04, ping is a basic utility that is used to evaluate if a specific network is available or not and whether a host can be accessed or not. Moreover, you can also determine whether a server is up and running. You can also troubleshoot connectivity issues by testing your internet connection.

Based on your Ubuntu 22.04 server/desktop installation, the ping command might not be present in your system by default. Therefore, if you wish to install the ping command on your system then follow the provided guide below.

How to install Ping command in Ubuntu 22.04

Sponsored

The procedure of installing the ping command on Ubuntu 22.04 is very easy and the below-given step-by-step procedure demonstrates how to do that.

Step 1: Update System

It is considered to be a good practice to update and upgrade your system when you are about to install something on it. For this purpose, firstly, press “CTRL+ALT+T” to open up Ubuntu 22.04 terminal and then execute the following command:

$ sudo apt update && sudo apt upgrade

Output

As you can see, our Ubuntu 22.04 system has been updated successfully.

Step 2: Install ping in Ubuntu 22.04

The “iputils-ping” package contains the ping command, therefore, you need to have this package installed on your system:

$ sudo apt install iputils-ping

Output

Sponsored

Step 3: Verify ping installation

In the next step, we will verify the successful installation of the ping command:

$ which ping

Output

Now to see if the ping command is working properly we will the remote host “linuxhint.com”:

$ ping -c 1 linuxhint.com

Above-given output signifies that we have successfully pinged the mentioned remote host.

Conclusion

To install ping command on your system, first of all, update system repositories using this command “$ sudo apt update && sudo apt upgrade”, then install the “iputils-ping” package that comprises the ping command with the “$ sudo apt install iputils-ping” command. Lastly, verify this installation by running this command “$ which ping”. This write-up demonstrated the procedure to install and use ping command in Ubuntu 22.04.

Ubuntu Server Admin

Recent Posts

How to Fix VMware’s “Could not open /dev/vmmon” Error on Ubuntu

You’ve recently installed VMware Workstation on your Ubuntu system and encountered the frustrating “Could not…

4 hours ago

How to Fix Ubuntu 404 Errors While Fetching Dependencies

Have you ever found yourself staring at a terminal full of 404 errors while trying…

4 hours ago

How to Fix ‘Please Install All Available Updates’ Error When Upgrading Ubuntu 18.04 to 20.04 LTS

One particularly frustrating error that many users face when trying to upgrade from Ubuntu 18.04 …

4 hours ago

How to fix “Release is not valid yet” Error in Docker Containers

In the world of containerization, time synchronization issues can create unexpected roadblocks when working with…

4 hours ago

How to fix “Externally Managed Environment” Pip Errors on Ubuntu

If you’ve recently upgraded to Ubuntu 23.04 or newer, you might have encountered a frustrating…

4 hours ago

Ubuntu now officially supports NVIDIA Jetson: powering the future of AI at the edge

Canonical announces the General Availability of Ubuntu for the NVIDIA® Jetson Orin™ for edge AI…

11 hours ago