How to boot OSX into desktop from single mode?

Solution 1:

The exit command will continue the startup process where it left off, leaving you in the normal graphical environment. But note that you will not be logged in as root, it'll take you to the normal login screen. If you want to log in as root in GUI mode, you'll need to set a root password (which you can do in single-user mode with the command passwd root).