Students get a Tuts+ subscription for just $45! Hurry limited offer.

Pushing Between Directories

Usually, we use the `cd` command to move between directories. However, you can track your movements in a stack and move backward quickly with the `pushd` and `popd` commands.

Add to My Courses
Hi! I'm Andrew Burgess, a Staff Writer here on Tuts+. I've been hanging around the Tuts+ since early 2009; I discovered the site when I was looking for an introduction to jQuery. Since discovering the site, my web development skills have skyrocketed; I think that's the default experience! Now, I've been writing for Tuts+ regularly since late 2009. I've been working with the computers since I was pretty young, and with the web since 2006. I've dabbled with over a dozen programming languages, but I'm most comfortable in JavaScript and Ruby. Currently, I'm a university student, studying computer science.
+ Expand Bio- Collapse Bio