Files
2025-08-24 00:21:55 +00:00

34 lines
555 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# cd
> Change the current working directory.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-cd>.
- Go to the specified directory:
`cd {{path/to/directory}}`
- Go up to the parent of the current directory:
`cd ..`
- Go to the home directory of the current user:
`cd`
- Go to the home directory of the specified user:
`cd ~{{username}}`
- Go to the previously chosen directory:
`cd -`
- Go to the root directory:
`cd /`