Ah, ed. I have fond memories of being stuck in an ed command line inside the Unix mode of Z/OS on a mainframe.
exit
?
quit
?
q
?
bye
?
help
?
ohmygodgetmeouttaheeeeere
?
P.S. I'm not a native English speaker. "Fond" means "a vision of hell" right?