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.
- Description
- Syntax
- Related commands
- Linux commands help
Common aliases for exit include “bye”, “logout”, and “lo”.
Syntax
exit
Related commands
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.