Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: April 2019

How to Exit a Non-Global Zone

  • To disconnect from a non-global zone, use one of the following methods.
    • To exit the zone non-virtual console:
      zonename$ exit
    • To disconnect from a zone virtual console, use the tilde (~) character and a period:
      zonename$ exit

      Your screen will look similar to this:

      [Connection to zone 'my-zone' pts/6 closed]
    • To exit from a Secure Shell session:
      zonename$ ~~.

      Note -  The default escape sequence for ssh is also ~, which causes the ssh session to exit.

See Also

For more information about zlogin command options, see the zlogin(1) man page.