Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions cd/cd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# cd

## Overview
`cd` is a Unix command to move a directory. It will move to the path specified by absolute or relative path.

## Syntax
```
cd [Folder Name]
```
## Different functionalities of cd command :

**cd /**: This command is used to change directory to the root directory, The root directory is the first directory in your filesystem hierarchy.
```
cd /
```

**cd dir_1/dir_2/dir_3**: This command is used to move inside a directory from a directory

```
cd dir_1/dir_2/dir_3
```

__cd__~ : This command is used to change directory to the home directory.
```
cd ~
```

**cd**: this command also works the same as the cd ~ command.
```
cd
```

**cd “dir name”**: This command is used to navigate to a directory with white spaces.Instead of using double quotes we can use single quotes then also this command will work.

```
cd "dir name"
```
1 change: 0 additions & 1 deletion cd/cd.txt

This file was deleted.