====== Exit current shell or script ====== ===== Synopsis ===== exit [] ===== Examples ===== === Exit the shell === exit === Exit the current script successfully === exit 0 === Exit the current script with an error === exit 1 ===== Description ===== Exit the iPXE shell, or the currently running [[:scripting|script]]. If a status is explicitly specified, then this status will be returned to the caller of the script. ===== See also ===== * ''[[:cmd:goto]]'' * ''[[:cmd:shell]]'' * iPXE [[:scripting]] guide * [[:cmd|List of all iPXE commands]]