I am trying to create symbolic link as below:
ln -s /home/scripts/logs /home/log
The directory /home/log
is already existing, which can’t be deleted.
When I do this it creates the symbolic link as /home/log/logs
.
I know that if the target is a directory and it already exists ln -s
will create a sub-folder of source inside target directory.
But I just want the contents of my source directory /home/scripts/logs/test_contents
to be in target /home/log/test_contents
.
Is there any solution for this?
Note: I can’t remove /home/logs
which contains logs of other applications