Specifications
Version 2.0
79
Description
This command displays, creates, or deletes aliases in the UEFI Shell environment. An
alias provides a new name for an existing UEFI Shell command or UEFI application.
Once the alias is created, it can be used to run the command or launch the UEFI
application.
There are some aliases that are predefined in the UEFI Shell environment. These
aliases provide the MS-DOS and UNIX equivalent names for the file manipulation
commands. See Built-In Aliases (section 3.6.4) for more details.
Al
iases will be retained even after exiting the shell unless the –v option is specified. If
-v is specified then the alias will not be valid after leaving the shell.
Status Codes Returned
SHELL_SUCCESS The action was completed as requested.
SHELL_INVALID_PARAMETER One of the passed in parameters was incorrectly formatted or
its value was out of bounds.
SHELL_OUT_OF_RESOURCES A request to set a variable in a non-volatile fashion could not
be completed. The resulting non-volatile request has been
converted into a volatile request.
SHELL_SECURITY_VIOLATION This function was not performed due to a security violation
Examples
To display all aliases in the UEFI Shell environment:
Shell> alias
md : mkdir
rd : rm
To create an alias in the UEFI Shell environment:
Shell> alias myguid guid
Shell> alias
md : mkdir
rd : rm
myguid : guid
To delete an alias in the UEFI Shell environment:
Shell> alias -d myguid
Shell> alias
md : mkdir
rd : rm
To add a volatile alias in the current EFI environment, which has a star * at the line
head. This volatile alias will disappear at next boot.










