I prefer to use .. to go to the previous directory
My .bash_aliases file contains this
alias ..="cd .."
So I can simply type .. to go back.
Well, I think you didn't watch the video. .. takes you one directory up and not in the previously opened directory. cd - takes you to the previous directory what ever it was. Try it to understand it or watch the video :)
I just tried it out! Really cool. Thanks for sharing!
Glad you liked it. 🙌
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.