When using the JShell, how do I exit it back to the CMD line?
I have already tried ctrl + x and just writing quit, but to no joy.
You can use the JShell command to exit as:
/exit
You can also type the end-of-file character, which is Ctrl-D on Linux systems.
Side note: Interestingly, with the use of command abbreviations for input shortcuts:-
/ex
(of course /exi
) also, resolves into the same command.
To see a list of JShell commands like this one, use the /help
command.