← Useful Tips
Linux / WSLLinux

cd: Jump back to the previous directory

Use cd to jump back to the previous directory. It is especially handy when you live in terminals and repeat long commands.

cd

Why it helps

Use cd to jump back to the previous directory. 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
cd: Jump back to the previous directorycdjump back to the previous directoryhow to jump back to the previous directoryLinux / WSL jump back to the previous directory

Related tips