Solved

How do I break out of terminal commands?

Posted on 2003-11-22
3
4,600 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Fine Tune your automatic Updates for Ubuntu / Debian
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

737 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