On 2007-05-31 21:01:44 +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've always used "ln -nfs B mylink". Never had any problem with this.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to