How do I change where a symlink points to, without deleting and creating a new one (with ln -s "/path/to/point/to" "/path/where/symlink/is"), because when I tried doing that with, for example, to Java's 'Current' symlink, Java wouldn't even work (from the command line, at least, said 'Segmentation Fault') but it was back to normal when I restored the old 'Current' symlink with Time Machine (but later I found out I should use /Applications/Utilities/Java Preferences.app anyway to change current java version). So anyway, how do I change an existing symbolic link? Thanks!!
|
feedback
|
However, the Java Preferences utility changes more than just a symbolic link; you should use that to ensure that the Java version is changed. | |||||||||||
feedback
|
|
Have you compared the permissions on the links and on the targets before and after you change the link? You might just need to follow up with the appropriate chown and chmod commands to get it working. | |||||||
feedback
|
|
try: unlink /path/to/current/link ln -s /path/to/target /path/to/symbolic/link | |||
|
feedback
|