0

I wanted to see description of sortcommand but as always forgot to type most important thing - /? in this case. Now I'm stuck in entering lines inside this program and I have no idea how to end it or if I even can. And this happens not the first time and not with only sort

Is there any way I can stop such program and return to cmd context?

I know I can just simply close the window and open another one but say I'm in some crazy directory and have many crazy long commands in history, and stored some crazy important variables and I would like to keep all of this craziness. I hope it must be something for such issue right? :)

2 Answers 2

1

You can break out of any program in cmd by pressing CTRL-C

The display will say ^C and you will then get your prompt back.

Also, remember, you can pipe any command to the more command so it automatically stops once the screen is full, so you can carefully read without the need to use the scrollbar.

So in your example, that would be sort /? |more

3
  • it's says that I've asked question 7min ago, but When I try to click the bird it's gives error "You can accept answer in 6min"? Mar 24, 2017 at 23:52
  • unless it is relative to your response... Mar 24, 2017 at 23:52
  • Yeah, has something to do with how much reputation you have, so you can't accept answers very fast.
    – LPChip
    Mar 25, 2017 at 9:15
1

Some programs not responding to CTRL-C might do with CTRL-Break and if you have really fast fingers you can halt output temporarily with CTRL-Sand continue with CTRL-Q (in most cases any key will continue).

2
  • Now I feel like total noob. What is Break key? :) Mar 25, 2017 at 18:32
  • Never mind, It's labeled only Pause on my keyboard... :) Mar 25, 2017 at 18:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .