Skip to content

ping: Command Not Found

ping is a program that can use ICMP ECHO packets to control access to hosts on the network and inform you about delays. What can be done with ping is not limited to this. However, the capabilities of ping will be the subject of another article.

If you get the error "command not found" when you try to run the ping command on your Ubuntu system, you need to install the package containing the ping command. For this, you can use:

apt-get install iputils-ping


This way, you can resolve the "ping command not found" error. If your error is not resolved even though you installed this package, list the package files and make sure the directory where the ping command is located is defined in your $PATH variable:

iputils-ping package files
ali@zion:~$ dpkg -L iputils-ping
ali@zion:~$ echo $PATH