When you're done executing any commands that you want to capture your interaction with, you can type the exit command (or the Control-d key combination on most systems) to terminate the shell.
A key on a computer terminal which, when pressed in conjunction with another key, is used to perform a control or manipulation function,? E. g.,? To terminate an editing operation.