I have following symlink in my home directory.
lrwxrwxrwx 1 mtk mtk 43 Aug 8 20:35 tripple-bit -> /media/mtk/study/Collage/docs
I use the symlink to navigate to the docs
folder directly. But now, while being in docs
folder, I want to move to it's parent directory i.e. /media/mtk/study/Collage
in this case.
How can I achieve this?
On giving cd ..
, it comes back to the home directory and not the parent directory.
cd -P
. The-P
option tellscd
to use the physical directory layout when resolving relative paths. – hrunting Aug 12 '15 at 14:07cd -L ..
is other way around - change directory logically. – jimmij Aug 12 '15 at 14:08