Saturday, February 15, 2014

Symlink Pointing to itself

Recently I came across a weird problem.

I created a symlink with the command
ln -s <source> <destination>

After the creation of the symlink what I noticed was that the symlink was pointing to itself and hence I had the problem "too many levels of symbolic link."

Solution

I am not sure whether this is the solution but it worked in my case.

When I ran the command, I was in the <source> directory.

Later when I changed the directory to the destination to run the command ln -s <source> <destination>, the output symlink actually pointed to the desired source.

Hope this works for others as well.

please comment if you have other solution.
Thanks






No comments:

Post a Comment