How to remove symbolic link from directory in Fedora?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I was trying to create symbolic link to directory in Fedora.
$ sudo ln -sv $LFS/tools
Then this error occurs.
ln: failed to create symbolic link './tools': File exists
How do I remove symbolic link to that directory
linux terminal lfs
add a comment |Â
up vote
2
down vote
favorite
I was trying to create symbolic link to directory in Fedora.
$ sudo ln -sv $LFS/tools
Then this error occurs.
ln: failed to create symbolic link './tools': File exists
How do I remove symbolic link to that directory
linux terminal lfs
2
Have you triedrm
?
â Ignacio Vazquez-Abrams
Apr 29 at 7:23
1
Note that whenln
says "failed to create symbolic link", it means it did not create a symbolic link. So perhaps there is nothing to remove.
â telcoM
Apr 29 at 10:10
If a file or directory named "tools" exists in your current working directory, I don't thinkln
will overwrite it. I think that's what the error message is about. If it does exist and is something you want to replace, you can add the-f
option toln
to force it to overwrite the existing file or you can userm
to delete it before runningln
again.
â Joe
May 4 at 21:18
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I was trying to create symbolic link to directory in Fedora.
$ sudo ln -sv $LFS/tools
Then this error occurs.
ln: failed to create symbolic link './tools': File exists
How do I remove symbolic link to that directory
linux terminal lfs
I was trying to create symbolic link to directory in Fedora.
$ sudo ln -sv $LFS/tools
Then this error occurs.
ln: failed to create symbolic link './tools': File exists
How do I remove symbolic link to that directory
linux terminal lfs
asked Apr 29 at 7:09
Moazzam Tahir
161
161
2
Have you triedrm
?
â Ignacio Vazquez-Abrams
Apr 29 at 7:23
1
Note that whenln
says "failed to create symbolic link", it means it did not create a symbolic link. So perhaps there is nothing to remove.
â telcoM
Apr 29 at 10:10
If a file or directory named "tools" exists in your current working directory, I don't thinkln
will overwrite it. I think that's what the error message is about. If it does exist and is something you want to replace, you can add the-f
option toln
to force it to overwrite the existing file or you can userm
to delete it before runningln
again.
â Joe
May 4 at 21:18
add a comment |Â
2
Have you triedrm
?
â Ignacio Vazquez-Abrams
Apr 29 at 7:23
1
Note that whenln
says "failed to create symbolic link", it means it did not create a symbolic link. So perhaps there is nothing to remove.
â telcoM
Apr 29 at 10:10
If a file or directory named "tools" exists in your current working directory, I don't thinkln
will overwrite it. I think that's what the error message is about. If it does exist and is something you want to replace, you can add the-f
option toln
to force it to overwrite the existing file or you can userm
to delete it before runningln
again.
â Joe
May 4 at 21:18
2
2
Have you tried
rm
?â Ignacio Vazquez-Abrams
Apr 29 at 7:23
Have you tried
rm
?â Ignacio Vazquez-Abrams
Apr 29 at 7:23
1
1
Note that when
ln
says "failed to create symbolic link", it means it did not create a symbolic link. So perhaps there is nothing to remove.â telcoM
Apr 29 at 10:10
Note that when
ln
says "failed to create symbolic link", it means it did not create a symbolic link. So perhaps there is nothing to remove.â telcoM
Apr 29 at 10:10
If a file or directory named "tools" exists in your current working directory, I don't think
ln
will overwrite it. I think that's what the error message is about. If it does exist and is something you want to replace, you can add the -f
option to ln
to force it to overwrite the existing file or you can use rm
to delete it before running ln
again.â Joe
May 4 at 21:18
If a file or directory named "tools" exists in your current working directory, I don't think
ln
will overwrite it. I think that's what the error message is about. If it does exist and is something you want to replace, you can add the -f
option to ln
to force it to overwrite the existing file or you can use rm
to delete it before running ln
again.â Joe
May 4 at 21:18
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
-2
down vote
It is simple
Use rm -rf
and that link name of directory
It will forcefully remove the link of that directory
3
Why would you need to remove a link recursively? That sounds like a recipe for a bad mistake.
â Ignacio Vazquez-Abrams
Apr 29 at 8:02
2
You can also use only rm to delete it
â Shah Honey
Apr 29 at 8:04
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
-2
down vote
It is simple
Use rm -rf
and that link name of directory
It will forcefully remove the link of that directory
3
Why would you need to remove a link recursively? That sounds like a recipe for a bad mistake.
â Ignacio Vazquez-Abrams
Apr 29 at 8:02
2
You can also use only rm to delete it
â Shah Honey
Apr 29 at 8:04
add a comment |Â
up vote
-2
down vote
It is simple
Use rm -rf
and that link name of directory
It will forcefully remove the link of that directory
3
Why would you need to remove a link recursively? That sounds like a recipe for a bad mistake.
â Ignacio Vazquez-Abrams
Apr 29 at 8:02
2
You can also use only rm to delete it
â Shah Honey
Apr 29 at 8:04
add a comment |Â
up vote
-2
down vote
up vote
-2
down vote
It is simple
Use rm -rf
and that link name of directory
It will forcefully remove the link of that directory
It is simple
Use rm -rf
and that link name of directory
It will forcefully remove the link of that directory
edited Apr 29 at 9:42
Hauke Laging
53.2k1282130
53.2k1282130
answered Apr 29 at 7:52
Shah Honey
173
173
3
Why would you need to remove a link recursively? That sounds like a recipe for a bad mistake.
â Ignacio Vazquez-Abrams
Apr 29 at 8:02
2
You can also use only rm to delete it
â Shah Honey
Apr 29 at 8:04
add a comment |Â
3
Why would you need to remove a link recursively? That sounds like a recipe for a bad mistake.
â Ignacio Vazquez-Abrams
Apr 29 at 8:02
2
You can also use only rm to delete it
â Shah Honey
Apr 29 at 8:04
3
3
Why would you need to remove a link recursively? That sounds like a recipe for a bad mistake.
â Ignacio Vazquez-Abrams
Apr 29 at 8:02
Why would you need to remove a link recursively? That sounds like a recipe for a bad mistake.
â Ignacio Vazquez-Abrams
Apr 29 at 8:02
2
2
You can also use only rm to delete it
â Shah Honey
Apr 29 at 8:04
You can also use only rm to delete it
â Shah Honey
Apr 29 at 8:04
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440686%2fhow-to-remove-symbolic-link-from-directory-in-fedora%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
Have you tried
rm
?â Ignacio Vazquez-Abrams
Apr 29 at 7:23
1
Note that when
ln
says "failed to create symbolic link", it means it did not create a symbolic link. So perhaps there is nothing to remove.â telcoM
Apr 29 at 10:10
If a file or directory named "tools" exists in your current working directory, I don't think
ln
will overwrite it. I think that's what the error message is about. If it does exist and is something you want to replace, you can add the-f
option toln
to force it to overwrite the existing file or you can userm
to delete it before runningln
again.â Joe
May 4 at 21:18