How to stop a process in Terminal [duplicate]

Possible Duplicate:
Ending a process in unix instead of interrupting it

When I task in Terminal, such as ping blah.com, how do I then stop this task (other than closing the Terminal window. In Windows, you can Ctrl+Break pretty much any terminal based process, but I can't figure out the way to do it on the Mac.


Solution 1:

Ctrl + C

Ctrl + C is a the standard *nix way of signaling a process to abort.

Solution 2:

Try Ctrl + C. Also, Ctrl + Z might help if you want to suspend a process.

For further information, man kill.

If you're curious about the difference between suspend and terminate, this answer is a good starting point; the TL;DR version is, a suspended process can be resumed later and its execution can continue. A terminated (and killed) process will be gone.