UEFI Shell命令详解,自写一个UEFI Shell命令
首先,我们从BIOS进入Shell,输入help命令查看帮助信息
Shell:helpacpiview - Display ACPI Table information.
alias - Displays, creates, or deletes UEFI Shell aliases.
attrib - Displays or modifies the attributes of files or directories.
bcfg - Manages the boot and driver options that are stored in NVRAM.
cd - Displays or changes the current directory.
cls - Clears the console output and optionally changes the background and foreground color.
comp - Compares the contents of two files on a byte-for-byte basis.
connect - Binds a driver to a specific device and starts the driver.
cp - Copies one or more files or directories to another location.
date - Displays and sets the current date for the system.
dblk - Displays one or more blocks from a block device.
devices - Displays the list of devices managed by UEFI drivers.
devtree - Displays the UEFI Driver Model compliant device tree.
dh - Displays the device handles in the UEFI environment.
disconnect - Disconnects one or more drivers from the specified devices.
dmem - Displays the contents of system or device memory.
dmpstore - Manages all UEFI variables.
drivers - Displays the UEFI driver list.
drvcfg - Invokes the driver configuration.
drvdiag - Invokes the Driver Diagnostics Protocol.
dumpfdt - Dump current Flat Device Tree (FDT)
echo - Controls script file command echoing or displays a message.
edit - Provides a full screen text editor for ASCII or UCS-2 files.
eficompress - Compresses a file using UEFI Compression Algorithm.
efidecompress - Decompresses a file using UEFI Decompression Algorithm.
else - Identifies the code executed when 'if' is FALSE.
endfor - Ends a 'for' loop.
endif - Ends the block of a script controlled by an 'if' statement.
exit - Exits the UEFI Shell or the current script.
for - Starts a loop based on 'for' syntax.
getmtc - Gets the MTC from BootServices and displays it.
goto - Moves around the point of execution in a script.
help - Displays the UEFI Shell command list or verbose command help.
hexedit - Provides a full screen hex editor for files, block devices, or memory.
if - Executes commands in specified conditions.
ifconfig - Modifies the default IP address of the UEFI IPv4 Network Stack.
load - Loads a UEFI driver into memory.
loadpcirom - Loads a PCI Option ROM.
ls - Lists the contents of a directory or file information.
map - Displays or defines file system mappings.
memmap - Displays the memory map maintained by the UEFI environment.
mkdir - Creates one or more new directories.
mm - Displays or modifies MEM/MMIO/IO/PCI/PCIE address space.
mode - Displays or changes the console output device mode.
mv - Moves one or more files to a destination within or between file systems.
openinfo - Displays the protocols and agents associated with a handle.
parse - Retrieves a value from a standard format output file.
pause - Pauses a script and waits for an operator to press a key.
pci - Displays PCI device list or PCI function configuration space and PCIe extended
configuration space.
ping - Ping the target host with an IPv4 stack.
reconnect - Reconnects drivers to the specific device.
reset - Resets the system.
rm - Deletes one or more files or directories.
sermode - Sets serial port attributes.
set - Displays or modifies UEFI Shell environment variables.
setfdt - Define and/or re-install a Flat Device Tree (FDT)
setsize - Adjusts the size of a file.
setvar - Displays or modifies a UEFI variable.
shift - Shifts in-script parameter positions.
smbiosview - Displays SMBIOS information.
stall - Stalls the operation for a specified number of microseconds.
tftp - Download a file from TFTP server.
time - Displays or sets the current time for the system.
timezone - Displays or sets time zone information.
touch - Updates the filename timestamp with the current system date and time.
type - Sends the contents of a file to the standard output device.
unload - Unloads a driver image that was already loaded.
ver - Displays UEFI Firmware version information.
vol - Displays or modifies information about a disk volume.Help usage:help [cmd|pattern|special] [-usage] [-verbose] [-section name][-b]
中文释义
命令 | 功能 | 命令 | 功能 |
---|---|---|---|
acpiview | 显示ACPI表相关信息 | ifconfig | 配置IP地址 |
alias | 显示,创建,删除别名 | load | 加载UEFI驱动 |
attrib | 显示,更改文件或目录属性 | loadpcirom | 加载PCI ROM |
bcfg | 管理启动项 | ls | 列出目录内容或文件信息 |
cd | 更改当前目录 | map | 显示Mapping |
cls | 清空标准输出 | memmap | 显示目录映射 |
comp | 比较两个文件 | mkdir | 创建目录 |
connect | 将driver绑定到指定的设备并启动driver | mm | 列出或修改MEM/MMIO/IO/PCI/PCIE地址空间 |
cp | 将文件或文件夹复制到另一个位置 | mode | 列出或修改输出设备的模式 |
date | 显示或设置日期 | mv | 移动文件或目录 |
dblk | 显示块设备里的块 | openinfo | 显示Protocols打开信息 |
devices | 列出所有设备 | parse | 从标准格式输出文件检索值 |
devtree | 显示设备树 | pause | 暂停执行脚本,等待用户输入 |
dh | 显示设备句柄 | pci | 显示PCI设备 |
disconnect | 从指定设备卸载驱动 | ping | ping |
dmem | 显示系统或设备内存的内容 | reconnect | 重新连接驱动与设备 |
dmpstore | 管理UEFI NVRAM变量 | reset | 重启系统 |
drivers | 显示设备驱动 | rm | 删除文件或目录 |
drvcfg | 配置驱动 | sermode | 设置串口属性 |
drvdiag | 调动Driver Disgnostis Protocol | set | 显示或修改Shell中的环境变量 |
dumpfdt | 调用驱动程序配置 | setfdt | 定义和/或重新安装平面设备树(FDT) |
echo | 回显 | setsize | 调整文件大小 |
edit | 编辑ASCII或UCS-2文件 | setvar | 设置UEFI变量 |
eficompress | 压缩文件 | shift | 移动脚本内参数的位置 |
efidecompress | 解压文件 | smbiosview | 显示SMBIOS信息 |
else | 标识当’if’为FALSE时执行的代码 | stall | 在指定的时间内暂停执行 |
endfor | 结束“for”循环 | tftp | 从TFTP服务器下载文件 |
endif | 结束由’if’语句控制的脚本块 | time | 显示/设置时区 |
exit | 退出Shell或脚本 | timezone | 显示/设置时区 |
for | 开始一个“for”循环 | touch | 更新文件时间设置 |
getmtc | 从BootServices获取MTC并显示它 | type | 显示文件类型 |
goto | 在脚本的执行点周围移动 | unload | 卸载驱动 |
help | 显示帮助信息 | ver | 显示UEFI固件版本信息 |
hexedit | 二进制编辑器,可编辑文件,块设备或内存 | vol | 显示/设置卷标 |
if | 开始一个“if”语句 |
Shell命令通用选项
命令行参数 | 作用 |
---|---|
-b,-break | 输出信息分屏显示 |
-q,-quit | 不输出任何信息 |
-sfo | 用标准格式输出 |
-t,-terse | 用简洁格式输出信息 |
-v,-verbose | 输出辅助信息 |
-? | 输出帮助信息 |
自己写一个UEFI Shell 命令(基于开源EDK2代码)
…待补充
UEFI Shell命令详解,自写一个UEFI Shell命令相关推荐
- docker build命令详解_Docker镜像与容器常用命令图文详解
一.系统命令 #查看docker版本 docker version #查看docker的系统信息,包含镜像容器的数量 docker info #查看docker的所有命令 docker --help ...
- shell脚本详解(一)——初学shell脚本必看哦
shell脚本详解 一.Shell脚本概述 1.1.shell脚本的概念 1.2.shell脚本应用场景 1.3.shell脚本能干什么 1.4. shell的作用--命令翻译器,"翻译官& ...
- wget命令详解_嵌入式学习之 Wget 命令详解
Wget 命令详解 - 理想者1988 - 博客园www.cnblogs.com 1.下载单个文件:ftp://ftp.denx.de/pub/u-boot/u-boot-2016.09.tar.b ...
- linux管道命令详解,Linux系统中的管道命令的用法详解
Linux系统中管道命令是linux系统的一个强大之处.下面由学习啦小编为大家整理了Linux系统中的管道命令的用法详解的相关知识,希望对大家有帮助! Linux系统中的管道命令的用法详解 管道命令操 ...
- 【linux命令详解】scp远程传输文件命令
//实例 //将当前目录下的dvr文件夹复制到 admin@172.18.1.240:/home/nfs/这个目录下 scp -r ./dvr admin@172.18.1.240:/home/nfs ...
- linux中dd命令详解,Linux基础知识之dd命令详解
本文先简要介绍dd的参数,然后通过几个实例介绍dd的应用,这些素材整理来源于网络. dd 是 Linux/UNIX 下的一个非常有用的命令,其作用是用指定大小的块拷贝一个文件,并在拷贝的同时进行指定的 ...
- Linux命令详解系列(一)——find命令详解
在纯命令行的服务器端,linux查找文件时,的确不如windows端直观.但是Linux端有一个特别强大的查找命令-find,今天就详细介绍一下find命令的使用方法. find命令 高级查找 fin ...
- linux ps-l命令详解,Linux系统中ps -l命令显示的英文含义
Linux系统中ps -l命令显示的英文含义 UID:启动这些进程的用户. PID:进程的进程ID. PPID:父进程的进程号(如果该进程是由另一个进程启动的). C:进程生命周期中的CPU利用率. ...
- linux tail 命令详解,Linux下如何使用tail命令指南
如果head命令用于查看文件的头部,那么tail命令就正好相反,tail命令主要用于查看文件内容的结尾,下面小编就给大家详细介绍下Linux下tail的用法吧. 1.命令格式; tail[必要参数][ ...
- linux的备份命令详解,docker备份linux系统的命令详解
tar备份系统 sudo tar cvpzf backup.tgz --exclude=/proc --exclude=/mnt --exclude=/sys --exclude=/backup.tg ...
最新文章
- 为什么MySQL数据库要用B+树存储索引?
- LuoguP2754 [CTSC1999]家园(分层图,最大流)
- 还不知道 AWS 是什么?这 11 个重点带你认识 AWS !
- mysql语句中变量 c#_C#基础知识-您的第一个C#程序,类型和变量以及流控制语句...
- 【2020-06-16】CentOS8下yum安装nginx,systemctl start nginx报错undefined symbol: FT_Done_MM_Var
- centos mysql 安装及配置
- 理解JavaScript中的多态
- [代码片断]SQL中解析XML数据
- jenkins linux虚拟机,Jenkins实战演练之Linux节点任务配置
- CentOS部署JavaWeb项目
- html如何保存离线使用,如何完整保存离线网页
- word VBA_替换下划线
- ssis使用Excel目标的坑
- 关于计算机教室的寄语,教师寄语大全(精选90句)
- 2020手机cpu天梯图
- 说一下HashMap的实现原理?
- 教育学习类app是怎么开发的
- HBuilderX 下载安装教程
- 数字字符串转换成数值
- HDS不玩了,高端存储还能玩多久?