Updated: 12/31/2020 by Computer Hope

Exit is a command or option used to close a program or file. The method of exiting from a program or file varies depending on the computer or program being used.

Pictured is an example of a file menu in Microsoft Excel and an Exit option to close the program. To exit most Windows and GUI (graphical user interface) programs, select "Exit" or "Close" from the file menu. Alternatively, click the close button in the top-right or top-left corner of the program window.


On Windows computers, you can press the keyboard shortcut Alt+F4 to quickly close a program. Press Ctrl+F4 or Ctrl+W to close an open tab and keep the program open. Some programs and command line commands may also use the Ctrl+X shortcut.

Related pages

  • See the MS-DOS exit command page for further information about the MS-DOS exit command.
  • See the Linux exit command for further information on this command.

Bye, Close, Die, Sign off, Software terms