When you're finished with your UNIX session, you need to exit the UNIX shell. If you've been playing with the su and shell commands, you might actually have shells within shells and need to exit from all of them. All you have to do is type exit once for each shell, as shown in Figure 3.3.
To exit from the shell:
exit
Tip
If you're located at the login shell prompt, you could also type logout, rather than exit. At all other shells, though, you need to type exit. In some cases, you could also press , but that depends on your local system configuration.
Tip
Be sure and log off rather than simply hanging up or breaking your telnet connection. It's possible, if the settings at your UNIX host are incorrect, that your session could remain open and someone else could pick up right where you left off with your session under your userid.
18.188.142.146