pushd and popd in Windows PowerShell

Pooja Nanda
CS through my eyes
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.

Inside Pooja directory

So, now we pushd this directory to the stack.

pushing ‘Pooja’ to stack

Now we explore around.

Now when we do pushd , we are back to the original directory ‘Pooja’

--

--

Pooja Nanda
CS through my eyes

CS Grad student, Computer science engineer . Likes technology , books , travelling, volunteering