Home » Questions » Computers [ Ask a new question ]

How to change a symlink in OS X?

How to change a symlink in OS X?

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")?

Asked by: Guest | Views: 353
Total answers/comments: 2
bert [Entry]

"mkdir /path/where/newsymlink
ln -s /path/to/point/to /path/where/newsymlink/is
mv /path/where/newsymlink/is /path/where/symlink/
rmdir /path/where/newsymlink

However, the Java Preferences utility changes more than just a symbolic link; you should use that to ensure that the Java version is changed."
bert [Entry]

"Try:

unlink /path/to/current/link
ln -s /path/to/target /path/to/symbolic/link"