Suppose a have a symlink named A
If I execute this:
ln B A -s
then B points to A, having created a chain of symlinks: B->A->some
Is there any option for ln
to link directly to the final target, without writing it explicitly? to get B->some
?
I would do that with readlink like this:
ln B $(readlink A -f) -s
But I think it should exist some option do it just with ln
.