CmdID

CmdID / Commands

cd

Displays the name of the current directory or changes the current directory. Windows commands reference

On Windows, DOS

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Displays the name of the current directory or changes the current directory. If used with only a drive letter (for example, cd C:), cd displays the names of the current directory in the specified drive. If used without parameters, cd displays the current drive and directory. NOTE: This command is the same as the chdir command. If command extensions are enabled, the following conditions apply to the cd command: - The current directory string is converted to use the same case as the names on the disk. For example, cd c:\temp would set the current directory to C:\Temp if that is the case on the disk. - Spaces aren't treated as delimiters, so <path> can contain spaces without enclosing quotation marks. For example: is the same as: If extensions are disabled, the quotation marks are required. - To disable command extensions, type:

cd [/d] [<drive>:][<path>]
cd [..]
chdir [/d] [<drive>:][<path>]
chdir [..]

To return to the root directory, the top of the directory hierarchy for a drive

cd\

To change the default directory on a drive that is different from the one you are on

cd [<drive>:[<directory>]]Identify

Trips 2 Sigma rules: mediumRead Contents From Stdin Via Cmd.EXE by frack113, Nasreddine Bencherchali (Nextron Systems); lowCMD Shell Output Redirect by frack113

To verify the change to the directory, type

cd [<drive>:]Identify

Trips 2 Sigma rules: mediumRead Contents From Stdin Via Cmd.EXE by frack113, Nasreddine Bencherchali (Nextron Systems); lowCMD Shell Output Redirect by frack113

/dChanges the current drive as well as the current directory for a drive.
<drive>:Specifies the drive to display or change (if different from the current drive).
<path>Specifies the path to the directory that you want to display or change.
[..]Specifies that you want to change to the parent folder.
/?Displays help at the command prompt.

Several platforms

from tldr-pages, CC BY 4.0

Change the current working directory.

Go to the specified directory

cd path/to/directoryIdentify

Go up to the parent of the current directory

Go to the home directory of the current user

Go to the home directory of the specified user

cd ~usernameIdentify

Go to the previously chosen directory

Go to the root directory

Windows

from tldr-pages, CC BY 4.0

Display the current working directory or move to a different directory. In PowerShell, this command is an alias of Set-Location. This documentation is based on the Command Prompt (cmd) version of cd.

Display the path of the current directory

Go to a specific directory on the same drive

cd path\to\directoryIdentify

Go to a specific directory on a different drive

cd /d C:path\to\directoryIdentify
/dChanges the current drive as well as the current directory for a drive. Windows commands reference

Go up to the parent of the current directory

Go to the home directory of the current user

cd %userprofile%Identify

Go to root of current drive

Change the current working directory.

Go to the specified directory

CD PATH\TO\DIRECTORYIdentify

Go up to the parent of the current directory

Go to the root directory of the current drive