tldr/pages/windows/cd.md

25 lines
499 B
Markdown
Raw Normal View History

# cd
2022-08-15 02:13:29 +01:00
> Display the current working directory or move to a different directory.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cd>.
- Display the path of the current directory:
`cd`
- Go to root of current drive:
2022-10-27 08:36:45 +01:00
`cd \`
- Go up to the parent of the current directory:
`cd ..`
- Go to a specific directory in the same drive:
`cd {{path\to\directory}}`
- Go to a specific directory in a different [d]rive:
`cd /d {{C}}:{{path\to\directory}}`