Not login shell.

As the shell can be invoked recursively, you can be "in" an instance of the shell that is not the one that was started when you first logged in. You must, however, be executing this login shell to log out. To terminate a shell execution, enter a [CTRL-D] sequence or type "exit". An additional "%" prompt character will appear on the terminal for every shell termination you effect by a [CTRL-D] or "exit". When you are in your original login shell, a [CTRL-D] will result in the message Use "logout" to logout. At this point, simply do what the message says! If you type "exit" when you are in your login shell, you will be logged out!

Click here to go to the next section.

Or click here to go to the top of the chapter.