I've started Emacs. How do I quit?

Hold down the ctrl key and press x; then c. Please make sure you exit before you log out. See the man pages on Emacs for more information.