1

I'm trying to create the following symlink ln -sv $LFS/tools / but I keep getting this error message:

ln: failed to create symbolic link '/tools': File exists

I'm having some trouble understanding this error message. Is it telling me that $LFS/tools exists? But that, I think, is to be expected. Is it telling me that there is another tools folder in /? I checked and there's none. Fairly new to Linux and I'm sure that this is stupid question, but I have been trying to solve this for some days and no luck. Any help would be appreciated.

4

man / info pages are your friend

try man ln and you'll notice the proper syntax

ln -sv $LFS/tools/ <link_name>

will create a symbolic link in the cwd current working directory to the path provided. The syntax is reverse from most CLI formats i.e. scp <from> <to> format

Naming the link / is not allowed and I don't think that's what you intended

2
  • Thanks, it worked. The command I used was taken from the lfs book and I used it as it was writen. – user3710626 Mar 1 '18 at 20:46
  • Vote up if this helped – market_zero Mar 2 '18 at 2:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.