I'm working through The Command Line Crash Course. I've been doing really well, but now find myself completely stumped at popd and pushd. I've read the analogy of a stack of plates or pancakes. I still don't get it, because I cannot visualize the code that comes after. For example:
pats-MacBook-Pro:temp pat$ pushd i/like/icecream
If pushd is like cd, then why does the second line show ~/temp at the end of the line? How does that part fit into the 'stack of plates' analogy?
Then if I type popd, it takes me back to the original folder, ~/temp. Why?
I really appreciate your help! Thanks!