As I stated in the other comment, I had no idea cd - was a thing before reading the discussion. I can think of multiple different times I accidentally cded somewhere when I didn't want to and had to type everything out again. This is going to be a nice time saver!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Something super useful but not widely known, is " cd - "
// ~/
$ cd docks/proj/src/component
// ~/docks/proj/src/component
$ (something useful)
// ~/
$ cd -
Also, just "cd" is same as "cd ~" which brings you to the home dir.✔️
As I stated in the other comment, I had no idea
cd -
was a thing before reading the discussion. I can think of multiple different times I accidentallycd
ed somewhere when I didn't want to and had to type everything out again. This is going to be a nice time saver!