Pages

Wednesday, February 16, 2011

Stop that!

Sometimes it seems easier to start something from the command line than to stop it.  Ping, for instance.

To stop whatever you're running in the terminal, type:

Ctrl+c

That's it.

If the issue happens to be ping, you can do it preemptively, by limiting the number of pings.  Just use this command:

ping -c [number of pings you want]
as in:
ping -c 7 www.google.com

No comments: