Re: OT: symlinks question



On Thu, May 31, 2007 at 09:01:44PM +0200, Jan Willem Stumpel wrote:
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.

Try:

ln -s A --force mylink

or
ln -s A -f mylink

Ken

--
Ken Irving


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages