tldr/pages/common/cd.md

20 lines
260 B
Markdown
Raw Normal View History

2014-05-08 21:45:56 +01:00
# cd
> Change the current working directory.
2014-05-08 21:45:56 +01:00
- Go to the given directory:
2014-05-08 21:45:56 +01:00
2015-04-07 12:42:01 +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 -`