# Jumping Around: cd -, pushd and \*\*

cd - switches between two folders, pushd and popd keep a stack of folders to come back to, \*\* reaches into every folder below once globstar is on, and CDPATH lets cd find a project's folders from anywhere.

![Cheat sheet for the lesson Jumping Around: cd -, pushd and \*\*: cd - switches between two folders, pushd and popd keep a stack of folders to come back to, \*\* reaches into every folder below once globstar is on, and CDPATH lets cd find a project's folders from anywhere.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/6abea2b9bc3c45fa9437f4f2c66061f4.webp)

- Category: Bash
- Level: Journeyman
- Tags: cd, cdpath, directory-stack, glob, linux, unix
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-jumping-around-cheat-sheet
