Linux
linuxlinux-commandsReferenceBeginner
Change Directory (cd)
Change the current working directory in Linux and Unix terminal shells.
Verified: 2026-09-30
Tested on:linux Ubuntu 24.04 / Debian 12
Platforms:
linuxmacos
#linux#cd#navigation#cli
Command
cd /path/to/directory
Short Description
cd (Change Directory) changes the current working directory in your shell environment.
Examples
1. Navigate to Home Directory
cd ~
# or simply:
cd2. Move Up One Directory Level
cd ..3. Return to Previous Working Directory
cd -4. Navigate using Absolute Path
cd /var/log/nginx