cd - Change Directory in Linux

From the Linux Commands cheat sheet · File & Directory Operations · verified Nov 2026

cd - Change Directory

Navigate between directories in the filesystem

bash
# Change directory
cd /path/to/directory
cd ~           # Home directory
cd ..          # Parent directory
cd -           # Previous directory
cd             # Home directory (shortcut)
✅ Use tab completion to avoid typing full paths
💡 cd - is useful for toggling between two directories
🔍 pwd shows your current directory path
directorynavigationbasic

Continue with Linux Commands

Save the full cheat sheet or work through every related task.

More Linux tasks

Back to the full Linux Commands cheat sheet