-bash: ping: command not found
Ok ,i have a small problem on a website and i ping it. But when i write on terminal for example:
ping www.google.com
the terminal response is:
ping www.google.com
-bash: ping: command not found
But, if i write
/sbin/ping www.google.com
the terminal response is:
/sbin/ping www.google.com
PING www.google.com (172.217.21.196): 56 data bytes
64 bytes from 172.217.21.196: icmp_seq=0 ttl=51 time=25.086 ms
64 bytes from 172.217.21.196: icmp_seq=1 ttl=51 time=42.283 ms
64 bytes from 172.217.21.196: icmp_seq=2 ttl=51 time=63.917 ms
64 bytes from 172.217.21.196: icmp_seq=3 ttl=51 time=80.465 ms
64 bytes from 172.217.21.196: icmp_seq=4 ttl=51 time=46.699 ms
^C
--- www.google.com ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 25.086/51.690/80.465/18.967 ms
I want to use the ping command as everyone and not the command /sbin/ping www.google.com
Does anyone have a solution?
macOS Sierra (10.12.1)