Can you change what a symlink points to after it is created?

前端 未结 7 1741
陌清茗
陌清茗 2020-12-12 10:52

Does any operating system provide a mechanism (system call — not command line program) to change the pathname referenced by a symbolic link (symlink) — other than by unlinki

7条回答
  •  不思量自难忘°
    2020-12-12 11:27

    Just in case it helps: there is a way to edit a symlink with midnight commander (mc). The menu command is (in French on my mc interface):

    Fichier / Éditer le lien symbolique
    

    which may be translated to:

    File / Edit symbolic link
    

    The shortcut is C-x C-s

    Maybe it internally uses the ln --force command, I don't know.

    Now, I'm trying to find a way to edit a whole lot of symlinks at once (that's how I arrived here).

提交回复
热议问题