Using cd - (cd dash) to quickly navigate back and forth between directories | Terminal | Bash

Опубликовано: 20 Февраль 2026
на канале: Tosbourn
25
0

When using the command line a really common workflow is jump into a directory, do some stuff, jump into another directory, do more stuff, then go back to that first directory.

cd -

Is the same as typing "cd my-last-directory"

Prefer blog posts? https://tosbourn.com/quick-way-to-swi...

This can be a huge time saver, especially when the directories aren't close to each other in the file system.

00:00 Intro
00:11 CD basics
00:27 cd -
00:44 more examples
-----

We help people with their web projects, from making websites and web apps, to helping with strategy and roadmap planning.

You can learn more about us on our website and LinkedIn;

https://tosbourn.com
  / 19658308  


#CD #Bash #Terminal #WebDevelopment #MacDevelopment