Linux exit Command with Examples

In Linux, exit is built-in command which is used to close terminal screen. In other words it causes normal process termination.

This command runs on different distributions of Linux based operating systems like Ubuntu, Fedora, Debian, Kali, Red Hat etc. In this tutorial we will discuss syntax for command exit with examples.

exit Syntax

The syntax for command exit is:


exit

exit Examples

Before executing exit command


$ exit

After running above command, your terminal will disappear i.e. it will be terminated.

For more detail, run man exit on terminal to get complete information about exit command.