Linux and Unix exit command

Quick links

About exit
Syntax
Related commands
Linux and Unix main page

About exit

Exit the shell.

Syntax

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 simply 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".

Related commands

break
csh
ksh
sh