To terminate a shell, either run the exit command or type ^D.[7]
exit
$ exit
[7] Control-D sends an “end of file” signal to any program reading from standard input. In this case, the program is the shell itself, which terminates.
3.14.70.203