cd

>Usage

The cd command allows you to navigate among directories in the file system, making it easier and more efficient to manage your files.

>Synopsis

cd [directory]

>Features

/

By using "/" you can immediately go to the root directory.

Example:

Dots

-zsh

> cd /


pwd
/

..

By using ".." you can to move up to the parent directory. Assume that you are in the directory /home/user/Document/Project:

Example:

Dots

-zsh

> cd ..


pwd
/home/user/Document

~

By using "~" you can immediately go to the user's home directory.

Example:

Dots

-zsh

> cd ~


pwd
/home

-

By using "-" you can go to the previous directory you were in. Assume that you were in /home/user/Documents and then you moved to the root directory.

Example:

Dots

-zsh

> cd -


pwd
/home/user/Documents

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Gabriele Siliprandi