tldr/pages/common/cd.md

21 lines
317 B
Markdown
Raw Normal View History

2014-05-08 21:45:56 +01:00
# cd
> Change the current working directory.
2021-03-30 19:55:57 +01:00
> More information: <https://man.archlinux.org/man/cd.n>.
2014-05-08 21:45:56 +01:00
- Go to the given directory:
2014-05-08 21:45:56 +01:00
`cd {{path/to/directory}}`
2014-05-08 21:45:56 +01:00
- Go to home directory of current user:
2014-05-08 21:45:56 +01:00
`cd`
- Go up to the parent of the current directory:
2014-05-08 21:45:56 +01:00
`cd ..`
- Go to the previously chosen directory:
2014-05-08 21:45:56 +01:00
2015-04-07 12:42:01 +01:00
`cd -`