Exiting the shell

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.

Figure 3.3. After we entered "exit" from the last shell, the system added "logout" and closed the connection.


To exit from the shell:

  • exit

    At the shell prompt, type exit, as shown in Figure 3.3. TaDaaaa!

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.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.142.146