Linux exit command

Updated: 05/04/2019 by Computer Hope
exit command

On Unix-like operating systems, the exit command causes the shell to exit.

Description

When you run exit, 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".

Syntax

exit

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.