I have installed Windows Subsystem for Linux (WSL) on my Windows operating system and am able to see Terminal in Visual Studio Code Editor.

So I typed help ssh command and hit enter, since then I am seeing the greater than (>) signs and not able to execute the command. How do I return back. I tried using exit, exit 0, exit -f, quit, killall and what not.

  • 3
    Did you try CTRL+D or CTRL+C ?
    – confetti
    Aug 14, 2018 at 15:28
  • I was about to request Aug 14, 2018 at 15:37

1 Answer 1


You should use the Ctrl+D key combination for this.

The combination sends the special EOF ("End Of File") control character (^D), which basically tells the terminal that you are done inputting things. This is used to exit out of many interactive shells, like python's for example.

Alternatively you can try Ctrl+C, which sends the SIGINT signal to the process in an attempt to end it in a clean way. The SIGINT signal is usually catched by the process/application itself which allows it to clean up its files or do whatever it wants before exiting. This does not always work to exit out of interactive shells though, instead Ctrl+C is used there to kill a currently running process within the interactive shell. (For example a loop you're running in a python interactive shell)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.