help
语法
help[cmd|pattern|special][-usage][-v][-section sectionname][-b]
说明
显示内置到 UEFI Shell 的命令列表。
选项
cmd
指定要显示其帮助的命令。
pattern
指定要用于显示命令帮助的模式。
special
显示 shell 命令行中使用的特殊字符的列表。
-usage
显示该命令的用法信息。该显示内容与指定
–section:NAME
和 –section:SYNOPSIS
时相同。-v
显示详细信息。
-section sectionname
显示帮助信息的指定部分。
-b
一次一个屏幕地显示帮助输出。
用法
如果未指定任何选项,则显示每个命令及其功能的简要说明。如果指定了 -v
,则显示指定命令的所有帮助信息。如果指定了 –section
,则仅显示指定的帮助部分(请参阅“示例”)。如果指定了 -usage
,则显示命令、简要说明和用法。
帮助文本集中在 shell 或 shell 命令可执行文件所在目录的 UCS-2 文本文件中。这些文件的名称为
command-name
.man,其中 command-name
为 shell 命令的名称。这些文件遵循一部分手册页格式,如“示例”中所述。
如果未指定任何选项,则仅显示该页的 NAME
部分。
示例
在 UEFI Shell 中显示命令列表,并在满屏后换页:
Shell> help –b
alias - Displays, creates, or deletes UEFI Shell aliases.
attrib - Displays or changes the attributes of files or directories.
cd - Displays or changes the current directory.
cls - Clears standard output and optionally changes background color.
comp - Compares the contents of two files on a byte for byte basis.
显示有关 shell 命令 ls
的帮助信息(使用任何以下语法选项):
Shell> help ls
Shell> ? ls
Shell> ls -?
显示以字符 p
开头的命令的列表:
Shell> help p*
pause – Prints a message and suspends for keyboard input