Quick Tip
Instantly Jump to Parent Directories with `cd -`
Challenge: You’ve navigated deep into a directory structure and need to quickly return to the directory you were in before. Constantly typing out the full path can be tedious.
The Solution: Use the special `-` argument with the `cd` command.
cd -
Why it works: The `cd -` command refers to the previous working directory, effectively toggling between your current location and the one you just came from.
Pro-Tip: For even more flexible directory navigation, explore `pushd` and `popd` to manage a stack of directories.
Linux Tips & Tricks | © ngelinux.com | 5/16/2026
