← Useful Tips
Linux / WSLLinux

pushd / popd: Navigate directories with a stack

Use pushd / popd to navigate directories with a stack. It is especially handy when you live in terminals and repeat long commands.

pushd / popd

Why it helps

Use pushd / popd to navigate directories with a stack. It is especially handy when you live in terminals and repeat long commands.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
pushd / popd: Navigate directories with a stackpushd / popdnavigate directories with a stackhow to navigate directories with a stackLinux / WSL navigate directories with a stack

Related tips