A symlink is a special file that merely contains the path of another file. It can be created by the ln command. Now is it possible to actually *edit* the contents of a *symlink* itself? I mean, I would like to change which file this symlink points to. Is the only way to do that to manually delete the existing symlink and create a new one? Is there no way to directly edit a symlink and point it to another file? -- Tux #395953 resides at http://samvit.org playing with KDE 3.52 on SUSE Linux 10.0 $ date [] CCE +2006-04-09 W14-7 UTC+0530
Shriramana Sharma wrote:
A symlink is a special file that merely contains the path of another file. It can be created by the ln command.
Now is it possible to actually *edit* the contents of a *symlink* itself? I mean, I would like to change which file this symlink points to. Is the only way to do that to manually delete the existing symlink and create a new one? Is there no way to directly edit a symlink and point it to another file?
Wouldn't it be easier just to replace the old symlink? Perhaps you'd better tell us what specifically you want to do, so we can give a better answer.
On Sunday 09 April 2006 14:34, Shriramana Sharma wrote:
A symlink is a special file that merely contains the path of another file. It can be created by the ln command.
Now is it possible to actually *edit* the contents of a *symlink* itself? I mean, I would like to change which file this symlink points to. Is the only way to do that to manually delete the existing symlink and create a new one? Is there no way to directly edit a symlink and point it to another file?
Start Midnight Commander with 'mc', go to the symlink, and press: <Ctrl>-X+<Ctrl>-S This is the command to create a symlink: <Ctrl>-X+S Of course it is possible to overwrite the symlink 'symlink_name' with: ln -sf <new_destination> <symlink_name> The 'f' option means force. Use with care! ;) Cheers, Leen
Sunday, 09 April 2006 18:21 samaye, Leendert Meyer alekhiit:
Start Midnight Commander with 'mc', go to the symlink, and press:
Thanks for that tipoff! I had a hunch that if it were available with MC, it should be there in Krusader, and lo behold: Right-click a link Goto "Link Handling" Click "Redirect Link" -- Tux #395953 resides at http://samvit.org playing with KDE 3.52 on SUSE Linux 10.0 $ date [] CCE +2006-04-10 W15-1 UTC+0530
participants (3)
-
James Knott
-
Leendert Meyer
-
Shriramana Sharma