Skip to content

CD command

FireBlade edited this page May 8, 2026 · 2 revisions

Navigates to a new working directory.

Usage

cd <DIR> [options]

Arguments

  • <DIR>
    The directory to navigate to. This can be an absolute or relative path, but not a UNC network path. To open a UNC network path, use the CONNECT command.

Options

  • /? (/h, -h, --help)
    Show help and usage information.

Aliases

chdir, changedir

Remarks

The cd command changes the working directory to the directory specified in the <DIR> argument.

Other commands allow you to use file paths relative to this working directory. This allows you to avoid repeating full paths in those commands.

The cd command cannot navigate to UNC paths (\\). To navigate to a UNC path, use the CONNECT command.

Clone this wiki locally