[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

OT: symlinks question

Is there a single command to change the target of a symlink?

Say I have a link which points from mylink to A, made by

  ln -s A mylink

and I want to make the link point to B instead. I can of course do

  rm mylink
  ln -s B mylink

but is't there a simpler way to do it? I would be amazed if there
weren't any (this operation occurs quite often), but I could not
find any clues in man ln.

Regards, Jan

Reply to: