exit

Linux · Terminal · available in the simulator

What it does

Close the terminal window or session. Accepts an optional exit status.

Syntax

exit [código]

Options and parameters

  • N

    Exit status (0 = success, non-zero = error).

  • código

    Return the specified exit status to the parent process.

    exit 1

Usage examples

  • exit
  • exit 0
  • exit 1
Practise exit

Related commands