Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015
 
 

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# ~.

      Your screen will look similar to this:

      [Connection to zone 'my-zone' pts/6 closed]

    Note - The default escape sequence for ssh is also ~, which causes the ssh session to exit. If using ssh to remotely login to a server, use ~~. to exit the zone.

See also

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