cd - Change Directory in Linux

From the Linux Essential Commands cheat sheet · File & Directory Operations · verified Jul 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 Essential Commands

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

More Linux tasks

Back to the full Linux Essential Commands cheat sheet