Three commands can be used to log out of the UNIX session. These are: logout, exit, and CTL-D. Some systems may not accept the CTL-D or exit. They are roughly equivalent when logging out from the console.