Cool CD (Change Directory)

version (2.57 KB) by Brendan Hannigan
A better version of the "cd" function (to change directories)


Updated 1 Sep 2016

View License

This is a very simple tool to maintain a stack of directories that you want to move between. It works just like "CD", except when you use "CCD" it adds the current directory (the one you are moving OUT OF) to the top of your directory stack.
You can quickly change back to any of the directories in your stack, add new ones, or clear the stack. Also, just typing "CCD" (with no arguments) will toggle through the stack of directories. This is especially nice if you just need to bounce back and forth between 2 directories.

The usage is well documented in the function's "help" section.

Cite As

Brendan Hannigan (2022). Cool CD (Change Directory) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Change Directory (cd) Overload

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!