Software >> OS >> Unix >> Solaris >> 11 >> Zones >> How to exit to the global zone after login into the non-global zone Console

e.g. login to the console of non-global zone testzone

# zlogin -C testzone

you may get the following prompt if you have user zoneuser

zoneuser@testzone$

you cannot exit back to the global-zone with the "exit" command.  The exit command will bring you to the zone's login prompt

testzone console login :

instead of typing exit you should type ~.

example

zoneuser@testzone$ ~.

[Connection to zone 'testzone' console closed]