How to quit the JShell and go back to the command-line?

Bryn :

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.

Naman :

You can use the JShell command to exit as:

/exit

Side note: Interestingly, with the use of command abbreviations for input shortcuts :-

/ex

(of course /exi) also, resolves into the same command.

enter image description here

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=424349&siteId=1