How do I break out of terminal commands?

Okay, this is an easy one.  I'm learning Linux and don't know the Windows equivalent to Ctrl-Break.

For example, I type "ping yahoo.com" at a terminal prompt and it just keeps going.... how do I stop it.  Another example is the "top" command, how do I exit the utility??

I'm stuck in a Windows world and want to escape soon!
chadly2Asked:
Who is Participating?
 
arjanhConnect With a Mentor Commented:
Ctrl-c is indeed for cancelling something.

ctrl-z is for putting something in the background. This can be handy for long-lasting commands and you want to do something else on the same command prompt... After ctrl-z you can give the command 'bg' to continue the process in the background. The results of the ping will still be printed though. With 'fg' you can bring the command back to the foreground.
0
 
chadly2Author Commented:
I figured it out, Ctrl-C or Ctrl-Z.... but what's the difference.  Does one Kill the process versus End?
0
 
arjanhCommented:
'top' can also be exited by pressing 'q' by the way
0
All Courses

From novice to tech pro — start learning today.