HP UEFI Shell Quick Reference Guide
HP UEFI Shell Quick Reference
Guide
© Copyright 2014 Hewlett-Packard Development Company, L.P.
Documentation feedback
Send any errors, suggestions, or comments to Documentation Feedback
(docsfeedback@hp.com).
HP Part Number: 767048-001
Published: February 2014
Edition: 1
UEFI Shell commands
This Quick Reference Guide lists the UEFI Shell
commands in alphabetical order.
See the HP UEFI Shell User Guide for more information.
alias
Displays, creates, or deletes aliases in the UEFI Shell
environment.
alias [ -d | -v ] [alias-name] [command-name]
attrib
Displays or changes the attributes of files or directories.
attrib [ +a | -a ] [ +s | -s ] [ +h | -h ] [
+r | -r ] [file...] [directory...]
cd
Displays or changes the current directory.
cd [path]
cls
Clears the standard output and optionally changes the
background color.
cls [color]
comp
Compares the contents of two files on a byte for byte
basis.
comp [-b] file1 file2
cp
Copies one or more source files or directories to a
destination.
cp [-r] [-q] src src... [dst]
date
Displays and sets the current date for the system.
date [mm/dd/ { yy | yyyy }] [-sfo]
dblk
Displays one or more blocks from a block device.
device [lba] [blocks] [-b]
devices
Displays a list of devices managed by UEFI drivers.
devices [-b] [-lxxx] [-sfo]
devtree
Displays the tree of devices compliant with the UEFI
Driver Model.
devtree [-b] [-d] [-lxxx] [devicehandle]
dh
Displays the device handles in the UEFI environment.
dh [-lxxx] [ handle | -p prot_id ] [-d] [-b]
[-v] [-sfo]
dmem
Displays the contents of system or device memory.
dmem [-b] [address] [size] [-MMIO]
drivers
Displays a list of information for drivers that follow the
UEFI Driver Model in the UEFI environment.
drivers [-lxxx] [-sfo]
echo
Controls whether or not script commands are displayed
as they are read from the script file, and prints the given
message to the display.
echo [ -on | -off ]
echo message
edit
Edits an ASCII or UCS-2 file in full screen mode.
edit [file]
exit
Exits the UEFI Shell or the current script.
exit [/b] [exit-code]
fwupdate
Updates the system BIOS firmware.
fwupdate firmwarefile [-r]
getmtc
Gets the MTC from BootServices and displays it.
getmtc
goto
Goes to a label in a script.
goto label
help
Displays the list of commands that are built into the UEFI
Shell.
help [ cmd | pattern | special ] [-usage]
[-v] [-section sectionname] [-b]
ls/dir
Lists the contents of a directory or file information.
ls [-r] [-a[attrib]] [-sfo] [file]
map
Displays or configures a mapping between a
user-defined name and a device handle.
map [-d mappedname]
map [ -r | -v | -c | -f | -u | -t type
[,type...] | mappedname ] [-sfo]
map [ mappedname | mapping ]
memmap
Displays the system memory map.
memmap [-b] [-sfo]
mkdir
Creates one or more new directories.
mkdir dir [dir...]
mode
Displays or changes the console output device mode.
mode [col row]
mv
Moves one or more files to a destination within a file
system.
mv src... [dst]
openinfo
Displays the protocols and agents associated with a
handle.
openinfo Handle [-b]
parse
Retrieves a value from a specified record that was output
in a standard formatted output.
parse filename tablename column [-i
instance] [-s instance]
pause
Pauses the script file execution.
pause [-q]
pci
Displays a PCI device list or PCI function configuration
space information.
pci [Bus Dev [Func] [-s Seg] [-i]]
reset
Resets the system.
Page 1