Exit

Exit is a built in command for some shells, specifically bash.

It causes the shell to exit with a error code that is optionally given to it as a argument.

This command is quite useful when coupled with su. After switching to another user, the exit command will exit out of that shell, returning to the previous user.

Typing help exit in a terminal will give more info on the command.