pushd/popd

pushd is the same as cd except that it pushes the absolute path of the current directory onto a virtual stack. Subsequent calls to pushd pushes additional paths onto the stack. popd pops the path frame off of the top of the stack and cds into it.

“cd -” does a similar operation, but it only remembers your last directory.

Leave a Reply