alias
Syntax
alias[-d|-v][alias-name][command-name]
Description
Displays, creates, or deletes aliases in the UEFI Shell environment.
Usage
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.
Aliases are retained even after exiting the shell unless the
–v
option is specified. If-v
is specified, the alias is not valid after leaving the shell.
Examples
To display all aliases in the UEFI Shell environment:
Shell> alias
md : mkdir
rd : rm
myguid : guid
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 UEFI environment, which has a star
*
at the line head. This volatile alias disappears at the next boot:
Shell> alias -v fs0 floppy
Shell> alias
md : mkdir
rd : rm
* fs0 : floppy