Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Possible Duplicate:
How can I “relink” a lot of broken symlinks?

Is there any way to move a file to a new location, and then re-target its symlinks to the new location, using a shell script? I'd like to find a way to move a file programmatically without breaking its symlinks.

share|improve this question

marked as duplicate by Gilles, jasonwryan, warl0ck, phunehehe, Renan Oct 29 '12 at 0:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

I've come across this answer. I think this would help.

Or, you can move a file and create a symlink for previous position.

share|improve this answer

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