Forums

going from the python >>> back to the $

how can I go from the python command line to the $ command line. I tried exit() but it closes my console.

If I could find out how to open a closed console that would be great also.

thanks

Dave

If you start Python as a separate console exit() will close the console, but if you start Python shell from Bash console you can stop the process and go back to the Bash console (using exit() or Ctrl-d); you may put Python console in the background as well (with Ctrl-z) and reopen it with fg. Or -- you can use a terminal multiplexer like tmux in a Bash console if you want to have simultaneous access to Python shell and Bash.