^D (ctrl-D), is the EOF character on UNIX.

Press ^D in a shell and it will exit or log out.