Hacker News new | ask | show | jobs
by dlgtho 2532 days ago
True. In such case you need to create a different symlink within the same filesystem and then use "mv" to atomically overwrite the current symlink.

ln -sfn target new && mv -Tf new old