mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 15:55:16 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
38
tldr/windows/cd
Normal file
38
tldr/windows/cd
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cd
|
||||
|
||||
> 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`.
|
||||
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/cd>.
|
||||
|
||||
- View documentation of the equivalent PowerShell command:
|
||||
|
||||
`tldr set-location`
|
||||
|
||||
- Display the path of the current directory:
|
||||
|
||||
`cd`
|
||||
|
||||
- Go to a specific directory in the same drive:
|
||||
|
||||
`cd {{path o\directory}}`
|
||||
|
||||
- Go to a specific directory in a different [d]rive:
|
||||
|
||||
`cd /d {{C}}:{{path o\directory}}`
|
||||
|
||||
- Go up to the parent of the current directory:
|
||||
|
||||
`cd ..`
|
||||
|
||||
- Go to the home directory of the current user:
|
||||
|
||||
`cd %userprofile%`
|
||||
|
||||
- Go to root of current drive:
|
||||
|
||||
`cd \`
|
||||
Reference in New Issue
Block a user