Pushd, Popd, dirs

MATLAB implementation of unix-style pushd, popd, and dirs.
755 Downloads
Updated 5 Apr 2004

View License

pushd, popd, and dirs implement a unix-style directory stack. It uses a global variable to hold the stack.

Example usage:
> cd myDir
myDir> pushd( 'anotherDir' )
anotherDir> %excute commands here
anotherDir> dirs
myDir
anotherDir> popd
myDir> % back to where you started

Cite As

Dennis Jackson (2024). Pushd, Popd, dirs (https://www.mathworks.com/matlabcentral/fileexchange/4707-pushd-popd-dirs), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0