Exit
From FreeBSDwiki
Exit is the system command used to close a shell you're in. It is also very frequently used for exiting other command-line-ish environments, such as FTP clients or the mysql server. Ctrl-D (also known as the eof character) will also exit the current shell, and is also used to finish adding a job to the at scheduler interactively.