Questions tagged [pushd]
44 questions
5
votes
1 answer
How is the pushd directory stack stored?
In a related question somebody states that the directory stack of the pushd command is emptied when your shell terminates. But how is the stack actually stored? I use fish instead of bash and the commands work the same way. I would assume pushd (and…

jallersma
- 55
1
vote
0 answers
How to get pushd programs to display directory abbreviations
I'm a big fan of using bash's pushd, popd, and dirs program set. However, I tend to use it so much, that the list of directories becomes too hard to read through.
It would be nice if I could get the dirs operation to use aliases in addition to the…

John Chesshir
- 161
1
vote
2 answers
Does pushd always push the current directory?
$ pwd
/tmp/d1
$ dirs
/tmp/d1
$ pushd ../d2
/tmp/d2 /tmp/d1
$ popd
/tmp/d1
$ pwd
/tmp/d1
It seems that pushd always pushes the current directory e.g. /tmp/d1 into the stack, although I run it as pushd ../d2?
Note that:…

Tim
- 101,790
0
votes
1 answer
Using pushd and popd
Say I do the following:
cd ~
pushd .
cd /bin/
pushd .
dirs
"/bin/ ~/
cd ~/Downloads/
pushd .
dirs
~/Downloads /bin/ ~"
How would I popd back to something a while ago, say from downloads to the home directory~?

user73959
- 23