Overwrite target of ln

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



Hi all,

Sorry if this seems too basic.

But is there a way to overwrite the target of a symbolic link without
first deleting the symlink itself?

For example, if I have this:

public_html -> releases/b2b-20080228

... and there's a new update, I can then just do the following:

$ ln releases/site-latest public_html

I tried using the -f option but it doesn't seem to work as expected.

-- 
Stand before it and there is no beginning.
Follow it and there is no end.
Stay with the ancient Tao,
Move with the present.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux