Solved

How do I break out of terminal commands?

Posted on 2003-11-22
3
4,584 Views
Last Modified: 2012-06-21
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!
0
Comment
Question by:chadly2
  • 2
3 Comments
 

Author Comment

by:chadly2
ID: 9803205
I figured it out, Ctrl-C or Ctrl-Z.... but what's the difference.  Does one Kill the process versus End?
0
 
LVL 5

Accepted Solution

by:
arjanh earned 50 total points
ID: 9803305
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
 
LVL 5

Expert Comment

by:arjanh
ID: 9803314
'top' can also be exited by pressing 'q' by the way
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now