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.

  • 7 Users Found This Useful
Was this answer helpful?

Related Articles

Changing permissions on directories only

You may need to change permissions for directories under a directory tree, without changing...

Monitor Linux software RAID array with e-mail notification

When using software RAID on Linux, one fast way to know the status of your RAID array is to check...

Searching for files containing a specific text string in Linux

The find and locate commands are great for finding files themselves, but sometimes you need to...

Powered by WHMCompleteSolution