To log out, type logout at the command prompt. You can also log out by terminating your login shell; just enter the exit shell command or press CtrlD.