loading...

re: BASH tricks: The dir stack. VIEW POST

TOP OF THREAD FULL DISCUSSION
re: A lesser-known feature of most shells (including bash) is cd - which returns you to the previous directory you were in, without affecting (or relyi...
 

And of course you can combine this with pushd and do pushd -.

Cool! I knew about cd - but I never thought to try pushd -. Thanks for sharing @fluffy , TIL.

code of conduct - report abuse