Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Maybe it's a bit odd, being a newbie, but I started with Linux From Scratch.
I've read my Linux books and I don't understand why I caoonot create a symbolic link.
Here's the output:
root@sparrow:/mnt/lfs# ln -sv /tools /
ln: failed to create symbolic link `/tools': File exists
I looked in the root directory but there is no link there.
The problem is you're telling it to create a link to /tools in /. Since you didn't give it a name, it will use the name of the target, which is tools. So essentially the command you're issuing is:
ln -sv /tools /tools
The error is because it can't create a link called /tools because a file of that name already exists (it also happens to be the one you're trying to link to, which if the command went through would be replaced by a link pointing to itself).
Last edited by suicidaleggroll; 01-21-2013 at 11:17 AM.
Maybe it's a bit odd, being a newbie, but I started with Linux From Scratch.
I've read my Linux books and I don't understand why I caoonot create a symbolic link.
Here's the output:
root@sparrow:/mnt/lfs# ln -sv /tools /
ln: failed to create symbolic link `/tools': File exists
I looked in the root directory but there is no link there.
Can anyone explain?
Thanks in advance.
I'm sorry to have waisted your time, but somehow I created a directory tools.
After removing this directory the command works
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.