How to change the target of a symbolic link

To change the target of a symbolic link in linux, you can use the following command.

ln -f -s /path_to_directory /symbolic_link

The -f switch forces it to change the link, ignoring the fact that it may already be linked.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read