Skip to content

Commit 149961e

Browse files
authored
Merge pull request nushell#755 from coolshaurya/cd-command-docs
Make docs for the cd command
2 parents 459bfdd + 417ac4b commit 149961e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/commands/cd.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# cd
2+
3+
If you don't know about it already, the `cd` command is very simple. It stands for 'change directory' and it does exactly that. It changes the current directory that you are in to the one specified. If no directory is specified, it takes you to the home directory. Additionally, `..` takes you to the parent directory
4+
5+
## Examples -
6+
7+
```shell
8+
/home/username> cd Desktop
9+
/home/username/Desktop> now your current directory has been changed
10+
```
11+
12+
```shell
13+
/home/username/Desktop/nested/folders> cd ..
14+
/home/username/Desktop/nested> cd ..
15+
/home/username/Desktop> cd ../Documents/school_related
16+
/home/username/Documents/school_related> cd ../../..
17+
/home/>
18+
```
19+
20+
```shell
21+
/home/username/Desktop/super/duper/crazy/nested/folders> cd
22+
/home/username> cd ../../usr
23+
/usr> cd
24+
/home/username>
25+
```

0 commit comments

Comments
 (0)