Suppose we have this directory structure:
/home/myuser/dir_1/sub_1/sub_2/sub_3
and I want to switch from sub_3 to dir_1, I need to do
cd ../../..
My question is: is there anything shorter? I mean something like:
cd -t 3
where you can tell the shell how many directories you want to return.
source
share