Tuesday, May 3, 2011

Linuxlike Ctrl-C (KeyboardInterrupt) for the Windows cmd line?

I've been forced into using a command line in windows and wondered if there were Linux-like keyboard shortcuts? I googled and didn't find what I was looking for.

Things like ^C, ^Z and such? Thanks all!

From stackoverflow
  • Ctrl-C does a similar thing in windows as it does in linux.

  • You can trap ^C on Windows with SIGINT, just like Linux. The Windows shell, such as it is, doesn't support Unix style job control (at least not in a way analogous to Unix shells), and ^Z is actually the ^D analog for Windows.

  • Try Ctrl+Break: some programs respond to it instead of Ctrl+C.

    Note also that nothing can cancel synchronous network I/O (such as net view \\invalid) on Windows before Vista.

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.