SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
dir is unchanged and still points to dir1. I must:
rm -f dir; ln -sf dir2 dir
to do what I want. Do I misunderstand the "-f" option, because I thought a "-f" would force the change to occur. This is on SuSE Enterprise Server 9 via ssh (I do not have a direct console). On a SuSE 9.1, I cannot reproduce this ("ln -f" does relink dir to dir2).
Any ideas? Thanks.
Last edited by registering; 09-27-2006 at 10:05 AM.
The target of your ln is a symbolic link so instead of overwiting the symbolic link itself it directs it to the directory (dir1) to which the symbolic link points. Since it redirects it puts it IN the directory rather than overwriting the link itself.
The whole point in symbolic links is to do this redirection so the above makes sense to me.
Thanks, you're right, I never noticed it was creating the link INSIDE the directory. It looks like if I add the "-n" option (no dereference) it does what I want (i.e., ln -snf). Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.