The exit command The exit command is used to terminate (Close) active Shell Syntax: exit Shortcut: Instead of typing exit, press ctrl + D, it will do the same Functionality.