Terminating a Shell

To terminate a shell, run the exit command or type ^D.[4]

exit

or if you’re running a Terminal window, click the close box.

[4] 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.

Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.