1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 20:22:09 +02:00
tldr/pages/common/cd.md
Shubham Kshetre 163f2452da
cd: add cd / (#8532)
add change directory to root directory
2022-09-27 21:51:08 +05:30

28 lines
424 B
Markdown

# cd
> Change the current working directory.
> More information: <https://manned.org/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 /`