Here’s a simple command that saves a lot of time when working in the terminal. If you move to one directory and then switch to another, you can quickly jump back to the previous one without typing the full path again. Just use cd -.
For example, if you run:
cd /home/user/Documents
then cd /usr/share
and after that type cd -
You’ll instantly jump back to /home/user/Documents. It works like a back button for your terminal and makes moving between folders much faster 😊
#linux #opensource