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.
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.
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:
Output
As you can see, our Ubuntu 22.04 system has been updated successfully.
The “iputils-ping” package contains the ping command, therefore, you need to have this package installed on your system:
Output
In the next step, we will verify the successful installation of the ping command:
Output
Now to see if the ping command is working properly we will the remote host “linuxhint.com”:
Above-given output signifies that we have successfully pinged the mentioned remote host.
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.
The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…
Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…
Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…
Focal Fossa will reach the End of Standard Support in May 2025, also known as…
Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…
Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…