How To Quickly Switch Between Directories in Ubuntu Terminal using ‘pushd’ & ‘popd’

Apr 27, 2014

pushd and popd are the commands to push and pop directories from the directory stack. Using pushd , you can quickly cd into the new directories while using Ubuntu terminal saving the current directory in the memory to return at any time in future. Using popd, you can quickly return into the previously visited directories.
pushd-600x357

To quickly cd into the new directory using pushd, you have to run pushd command in the following format in the Ubuntu terminal.
Now, to quickly return back to the previously visited directory , just run the popd command in the terminal.

popd-600x356
In this way, you can quickly switch between the directories in Ubuntu terminal using pusd and popd.

by | Categories: How to | Tagged: , , , |

Share with others

No Responses so far | Have Your Say!

Comments are closed.