Skip to main content
2 of 3
edited body
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/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

Pratheesh
  • 235
  • 2
  • 3
  • 7