Linux Command | File Management | cd Change Directory

cd Command

Moves to another directory. cd stands for change directory.

Syntax

cd [directory path to move to, relative or absolute]

Examples

Move to the logged-in user’s home directory.

cd

Move to /home.

cd /home

Move to the current directory.

cd .

Move to the parent directory.

cd ..

Move to the home directory.

cd ~

Move to a specified user’s home directory.

cd ~account-name

NOTE: The home directory is the account-specific working area and login location.