Solved

How do I break out of terminal commands?

Posted on 2003-11-22
3
4,589 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

864 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

19 Experts available now in Live!

Get 1:1 Help Now