java 如何退出 JShell 并返回命令行?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46930040/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to quit the JShell and go back to the command-line?
提问by Bryn
When using the JShell, how do I exit it back to the CMD line?
使用 JShell 时,如何将其退出回 CMD 行?
I have already tried ctrl+ xand just writing quit, but to no joy.
我已经尝试过ctrl+x并且只是写退出,但没有任何乐趣。
回答by Naman
You can use the JShell commandto exit as:
您可以使用JShell 命令退出为:
/exit
Side note: Interestingly, with the use of command abbreviations for input shortcuts :-
旁注:有趣的是,使用命令缩写作为输入快捷方式:-
/ex
(of course /exi
) also, resolves into the same command.
(当然/exi
)也解析为相同的命令。