Specifications

86 Version 2.0
cd
Summary
Displays or changes the current directory.
Usage
cd [path]
Options
path
The relative or absolute directory path.
Description
This command changes the current working directory that is used by the UEFI Shell
environment. If a file system mapping is specified, then the current working directory
is changed for that device. Otherwise, the current working directory is changed for the
current device.
If path is not present, then the current working directory (including file system
mapping) is displayed to standard out.
The table below describes the conventions that are used to refer to the directory, its
parent, and the root directory in the UEFI Shell environment.
Table 13 Conventions for Directory Names
Convention Description
. Refers to the current directory.
.. Refers to the directory's parent.
\ Refers to the root of the current file system.
The current working directory is maintained in the environment variable %cwd%. See
“Current Directory” (section 3.5) for more information.
Status Codes Returned
SHELL_SUCCESS The action was completed as requested.
SHELL_SECURITY_VIOLATION This function was not performed due to a security violation
SHELL_INVALID_PARAMETER One of the passed in parameters was incorrectly formatted
or its value was out of bounds.