跳转至

退出当前 shell 或脚本

语法

  exit [<status>]

示例

退出 shell

  exit

成功退出当前脚本

  exit 0

以错误状态退出当前脚本

  exit 1

描述

退出 iPXE shell 或当前正在运行的脚本。如果显式指定了状态码,该状态码会返回给脚本的调用者。

另请参阅