Say if I need to do this a lot:
cd ../../../../foo/sub1/bar/dest/
cd ../../../../foo2/sub1/bar/dest/
cd ../../../../foo3/sub1/bar/dest/
cd ../../../../foo/sub1/bar/dest/
Is there any faster way to not always typing ../../../../
so many times? Any creative ideas?
cd ../../../..
and be done with it?pushd
andpopd
or evencd -
.cd -
(to go to last directory) is easier. I typicallyalias h="history|grep"
so that I can use the history entry shortcuts instead. Something likeh foo3
, followed by!450
to repeat that command.