[pappy@chmodx]:$ man cd

$ cd

Change the shell's current working directory

DOCUMENTEDNavigationUbuntu 24.04 LTS baseline

Synopsis

cd [-L|[-P [-e]] [-@]] [directory]

What it does

Examples

Enter a directory
cd /var/log
Go to your home directory
cd
Go up one level
cd ..

Important details

These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration. For exact option semantics, the linked authoritative documentation is the source of truth.