pushd and popd in Windows PowerShell
Published in
2 min readJan 11, 2018
pushd is the alias for push-location and popd is alias for pop-location.These both are cmdlets . pushd pushes the current working directory to a stack.So we can explore around other directories
and when we want to come back to the directory which we were originally working with we can just use popd to do that.
Eg. We are in directory called Pooja.Suppose we want to later work in this directory after exploring around.
So, now we pushd this directory to the stack.
Now we explore around.
Now when we do pushd , we are back to the original directory ‘Pooja’