Summary Table of Commands

Command Description
cd Change the current working directory
pwd Show the full path of the current directory
ls List the contents of a directory
du Check disk usage of files and directories

Change Directory (cd)

The cd command is used to change your current working directory.

Syntax:

cd [directory]

Examples

Move to a specific directory:

cd /home/user/Documents

Move to the parent directory:

cd ..

Move to the home directory:

cd ~

Move to the previous directory:

cd -

Print Working Directory (pwd)

The pwd command displays the full path of the current working directory.