Linux exit command

Updated: 12/29/2017 by Computer Hope

About exit

Issuing the exit command at the shell prompt will cause the shell to exit.

In some cases, if you have jobs running in the background, the shell will remind you that they are running and return you to the command prompt. In this case, issuing exit again will terminate those jobs and exit the shell.

Common aliases for exit include "bye", "logout", and "lo".

exit syntax


login — Begin a session on a system.
csh — The C shell command interpreter.
ksh — The Korn shell command interpreter.
sh — The Bourne shell command interpreter.