1

Example:

I created a symbolic link into my /usr/local/bin folder using

sudo ln -s ~/Desktop/package/Application/tool1
sudo ln -s ~/Desktop/package/Application/tool2
…

I would like to move my Application folder (and all its tools) to /package/Application (basically outside the Users parent directory). Is it possible to have the original symbolic links point to its corresponding tool in its new location?

2

No. Symbolic links will continue pointing to the same location and become dangling symlinks. To make them point to the new location you can either remove them and recreate them correctly or make a double indirection: create symlinks from the current location of the tools to the new one so that the symlinks in /usr/local/bin continue to point (though indirectly this time) to the correct location.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.