windowsterminal

Linux-like Ctrl + C (keyboard interrupt) for the Windows command line


I've been forced into using a command line in Windows. Are there Linux-like keyboard shortcuts?

Are there things like Ctrl + C, Ctrl + Z, and such?


Solution

  • You can trap Ctrl + 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 Ctrl + Z is actually the Ctrl + D analog for Windows.