How to Stop Ping in the Terminal

Ping is a Terminal command that tests your connection to a host machine. Ping reports back the distance between your computer and a destination host in millisecond response times. When you use the Mac or Linux Terminal to ping a host computer, it will repeat the ping process for a long time. This is to help you find a consistent ping response time by allowing you to average out all of the results. You can stop a ping command using a keyboard combination.

Young businessman working
How to Stop Ping in the Terminal
credit: Zoran Zeremski/iStock/Getty Images

Step

Open "Terminal" on your Mac or Unix system.

Step

Start a test ping. For example, type "ping google.com" and press "Enter."

Step

Press "Ctrl"+"C" to cancel the ping.