Skip to main content
add backticks around directories, fix spelling and improve grammar
Source Link

I am trying to create symbolic link as below:

ln -s /home/scripts/logs  /home/log 

The directory /home/log/home/log is already existing  ,which cant which can't be deleted. When i When I do this it creates the symbolic link as /home/log/logs /home/log/logs.  I know that if the target is a directory and it already exists ln -s will create a sub folder-folder of source inside target directory. But i But I just want the contents of my source directory (/home/scripts/logs/"test_contents") to/home/scripts/logs/test_contents to be in target(/home/log/"test_contents") /home/log/test_contents. Do we gave

Is there any solution for this Note?

Note: i cantI can't remove /home/logs/home/logs which contains logs of other applications

I am trying to create symbolic link as below

ln -s /home/scripts/logs  /home/log 

The directory /home/log is already existing  ,which cant 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"). Do we gave any solution for this Note: i cant remove /home/logs which contains logs of other applications

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

edited body
Source Link
Pratheesh
  • 235
  • 2
  • 3
  • 7

I am trying to create symbolic link as below

ln -s /home/scripts/logs  /home/log 

The directory /home/log is already existing ,which cant 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/loglogs/"test_contents") to be in target(/home/logslog/"test_contents"). Do we gave any solution for this Note: i cant remove /home/logs which contains logs of other applications

I am trying to create symbolic link as below

ln -s /home/scripts/logs  /home/log 

The directory /home/log is already existing ,which cant 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/log/"test_contents") to be in target(/home/logs/"test_contents"). Do we gave any solution for this Note: i cant remove /home/logs which contains logs of other applications

I am trying to create symbolic link as below

ln -s /home/scripts/logs  /home/log 

The directory /home/log is already existing ,which cant 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"). Do we gave any solution for this Note: i cant remove /home/logs which contains logs of other applications

Source Link
Pratheesh
  • 235
  • 2
  • 3
  • 7

How can i create symbolic link for directory

I am trying to create symbolic link as below

ln -s /home/scripts/logs  /home/log 

The directory /home/log is already existing ,which cant 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/log/"test_contents") to be in target(/home/logs/"test_contents"). Do we gave any solution for this Note: i cant remove /home/logs which contains logs of other applications