Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 694
Bryn Avatar asked Oct 25 '17 10:10

Bryn


People also ask

How do I get out of JShell in terminal?

To exit JShell, type /exit .

How do I get back to command line in Linux?

Linux: You can open Terminal by directly pressing [ctrl+alt+T] or you can search it up by clicking the “Dash” icon, typing in “terminal” in the search box, and opening the Terminal application. Again, this should open up an app with a black background.

How do you quit a command line?

To close or exit the Windows command line window, also referred to as command or cmd mode or DOS mode, type exit and press Enter .

How do I exit git bash?

To exit from bash type exit and press ENTER . If your shell prompt is > you may have typed ' or " , to specify a string, as part of a shell command but have not typed another ' or " to close the string. To interrupt the current command press CTRL-C .


2 Answers

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

like image 114
5 revs, 2 users 94% Avatar answered Oct 24 '22 07:10

5 revs, 2 users 94%


inorder to exit from jshell you can use the command /exit

like image 30
GOKUL KANNAMBALLY BALACHNADRAN Avatar answered Oct 24 '22 07:10

GOKUL KANNAMBALLY BALACHNADRAN