A soft link, or more common, a symlink, is link a shortcut to the targeted file or directory. So when is removed the original target stays present.
A symlink can be created like:
ln -s /path/ linkname
from the ln man pages:
ln [OPTION]… [-T] TARGET LINK_NAME (1st form)
-s, –symbolic
make symbolic links instead of hard links
to remove a symlink
rm linkname
You can't update the soft link to point to other target path, you must delete the soft link first and recreate it
No comments:
Post a Comment