Skip to content
Follow
Ubuntu Linux

How to Install ping Command on Ubuntu Linux

Richard
Written by
Richard
Oct 6, 2023 Updated Jul 13, 2026 1 min read
How to Change Default Apps in Ubuntu
How to Change Default Apps in Ubuntu

The ping command on Ubuntu Linux installs the iputils-5.7-3 package.

Ping is a simple tool that tests if your computer can reach another device on the network. It sends tiny test messages and times how long it takes for a response.

You might need to install ping if you get a “command not found” error on a new Ubuntu system or a Docker container. Trying to directly install “ping” using the package manager will also not work.

This guide shows you the correct way to add the ping command to your Ubuntu system.

⚡ Quick Answer

Install the iputils-ping package using the command sudo apt install iputils-ping. This package provides the ping utility, which is essential for testing network connectivity on Ubuntu. After installation, you can use ping to diagnose network issues.

Install ping command

To install ping on Ubuntu, you’ll need the iputils-ping package. This is a good idea if ping isn’t already on your system, for example, on some basic installations or within containers. Run the command `sudo apt update && sudo apt install iputils-ping` in your terminal to get it.

To install ping, you’ll need the iputils-ping package. The command `sudo apt update && sudo apt install iputils-ping` will install it.

🐧Bash / Shell
sudo apt install iputils-ping

Once the package is installed, you can use the ping command to test network connectivity.

💻Code
ping localhost

That should do it!

Conclusion:

  • The ping command is a vital network utility for testing connectivity in Ubuntu Linux.
  • Installing the iputils-ping package is necessary to use the ping command in minimal Ubuntu editions or Ubuntu running as a Docker.
  • Verifying network connectivity using ping localhost can ensure that the installation was successful.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Turn "Week Numbers" On or Off for Calendar in Ubuntu Linux
Ubuntu Linux How to Turn "Week Numbers" On or Off for Calendar in Ubuntu Linux
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04
How to Install Additional Software on Ubuntu
Ubuntu Linux How to Install Additional Software on Ubuntu

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *