I want to create a one way symlink i.e. I can use it to go to the destination directory but I cannot go back.
Let's say there is a directory called
D
with two subdirectories S1
and S2
. I want to create a link in S1
that points to S2
(let's say ls2 -> ../S2/
). If I do cd ls2
and then cd ..
then I want to go to D
and not S1
.
Is it possible?
Asked by WYSIWYG
(363 rep)
Oct 16, 2019, 01:16 PM
Last activity: Oct 16, 2019, 01:27 PM
Last activity: Oct 16, 2019, 01:27 PM