If you are logged into a Linux workstation at the console and are using the default graphical user interface, click on in the upper left-hand corner. In the drop-down menu, click on Log Out. In the confirmation box, click on Log Out.
If you are logged into a Linux virtual text console, simply type exit at a prompt. Then, press and hold the ALT and F7 keys to return the machine to the graphical console mode.
If you are logged in remotely, enter exit at the shell prompt.