Knowledge Garden

Search

Search IconIcon to open search

Change Symlink Bash

Last updated Nov 2, 2022 Edit Source

to update link, either delete the link and redo it. if you are linking to a folder use -n tag aswell

1
ln -sfn /a/new/path files

-n this option is necessary when linking to a different target to avoid a sub-folder inside that sym link and instead replaced the link.