Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 1
    Why not use pwd to figure out where you are? Commented Feb 21, 2012 at 12:39
  • I don't understand your question? The point is that pushd breaks the behavior of cd - that I want (or expect). I know perfectly well in which directory I am, but I want to increase the speed with which I change directories :) Commented Feb 21, 2012 at 12:46
  • 1
    Do you know zsh? It has really nice features like AUTO_PUSHD. Commented Feb 21, 2012 at 14:39
  • 3
    +1 Thank you for teaching me about cd -! For most of a decade, I've been doing $ cd $OLDPWD instead. Commented Feb 21, 2012 at 16:26
  • 1
    @bernhard Oh, I misunderstood what you were asking. You were wanting to know how to store the current working directory. I was interpreting it as you wanted to remember (as in you forgot) your current working directory. Commented Feb 22, 2012 at 1:58