Mac-os app ⌘-q Vim :wq screen ctrl-a ctrl-d (detach) ctrl-a ctrl-\ (kill) ssh <enter> ~ . bash / cat ctrl-d Most command line programs ctrl-c If that doesn't work, try: ctrl-z (bring current program to background) kill %% (kill program in background) Make monitor ctrl-[