How to Install ping Command on Ubuntu Linux
The ping command tests network connections by sending data packets to another device and measuring response time. Fresh Ubuntu installations and lightweight Docker containers (isolated environments that share the host system’s kernel) often lack this tool, which triggers a “command not found” error.
Fixing this issue takes one quick command in your terminal because the tool lives inside the iputils-ping package. Once you install that package, you can check connection speeds and troubleshoot network drops right away.
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, open your terminal and run the command sudo apt update followed by sudo apt install iputils-ping. This downloads and sets up the iputils-ping package, which contains the network testing tools you need. It fixes missing command errors that often happen on minimal Ubuntu setups, cloud servers, or Docker containers.
Installing the iputils-ping package solves missing tool issues on minimal setups or container environments.
sudo apt install iputils-ping
Test your connection to verify the installation works using ping.
ping localhost
Network diagnostics are ready for daily use.
Conclusion:
- The
pingcommand is a vital network utility for testing connectivity in Ubuntu Linux. - Installing the
iputils-pingpackage is necessary to use thepingcommand in minimal Ubuntu editions or Ubuntu running as a Docker. - Verifying network connectivity using
ping localhostcan ensure that the installation was successful.
Was this guide helpful?
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.
No comments yet — be the first to share your thoughts!