I'm trying to recreate a relative symlink, to link "asymlink" to "somedir/actualfile" in /root/test/ but its creating 2 symlinks instead.
[root]# ln -t /root/test/ -s somedir/actualfile asymlink
[root]# ll /root/test/
lrwxrwxrwx 1 root root 18 Feb 16 06:15 actualfile -> somedir/actualfile
lrwxrwxrwx 1 root root 8 Feb 16 06:15 asymlink -> asymlink
drwxr-xr-x 2 root root 4096 Feb 16 06:15 somedir
I can do it with
ln -s somedir/actualfile asymlink
but I'm trying to avoid the cd, and also avoid using the full path.
Does anyone know why the -t flag isn't working as expected?