News for hackers. Stuff that matters.
Re:Awesome but commonly unknown Linux Commands by leviathan on Wednesday August 10, 2011 @07:38AM (#2867741)
Yeah but only one directory in the history. With pushd/popd you can navigate as much as you want, an then popd to that directory you intended to bookmark.
Re:Awesome but commonly unknown Linux Commands by user24 on Wednesday August 10, 2011 @08:26AM (#2867861)
yeah, I switched to cd - for a while but got bitten by this too many times.

$ pwd

/some/long/compli/cated/v1.0.7/path/to/_stuff

$ cd /simple/

$ do -stuff

$ cd ./foo

$ do -stuff

$ rem now let's get back to that complicated directory again

$ cd -

oh, wait, I cd'ed twice, shit

Re:Awesome but commonly unknown Linux Commands by nickknw on Wednesday August 10, 2011 @01:41PM (#2869304)
If you find yourself in this spot again, Ctrl-r `cd /som` helps.