To be more precise: I know what the -s
options stands for - I use it daily. But I saw someone in a tutorial, who was moving the document root of his website from /var/www/html/project
to ~/www/project
to increase security (he later on changed the rights and so on, but's that not significant in this context). Then he created the following symlink:
ln -sT ~/www/project /var/www/html/project
I was wondering what the -T
is for, because normally I would have just used -s
. From the man page I get the following sparse information regarding the -T
option:
-T, --no-target-directory
treat LINK_NAME as a normal file always
I don't really understand what this is for. Why should I use -T
in conjunction with -s
when creating a symlink? Is there any great benefit from doing so?