By using "ln -s a b", it creates a soft-link from b to a with a relative path. If 'b' is moved to another directory, it would get broken.

Is there any way so I can create an link with an absolute path?

有帮助吗?

解决方案

Simply use the full path to the link target:

ln -s /full/path/to/a b
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top