Cannot remove symbolic link to directory.
- date: November 19, 2003
and created a symbolic link to dir2:
ln -s ~/dir1/dir2 ~/symlink
Now I can't remove symlink! I get the errors:
rm: cannot remove directory 'testsymboliclink/': Is a directory
rmdir: 'testsymboliclink/': Not a directory
This is REALLY weird. I even cannot
unlink: 'testsymboliclink/': Not a directory
I can't even remove the link, if the dir is empty. Please help me...
unable to remove symbolic link
- date: July 23, 2011
I created the following symbolic link:
ln -s /home/vichingo/.gvfs/"media on mybook" /media/mybook
this worked, only now I have a folder media on mybook within the mybook folder.
I wanted to remove this link, but when doing:
sudo rm /media/mybook/media on mybook
rm: cannot remove `/media/mybook/media': No such file or directory
rm: cannot remove `on': No such file or directory
rm: cannot remove `mybook': No such file or directory
for some reason I am either unable to remove the link or change the name of the folder to change the spaces into underscores.
I have to note that I am a beginner Linux user.
Could anybody help me sort out this problem?
How to remove a symbolic link without deleting the file
- date: October 9, 2007
What linux command will enable you to remove a symbolic link without deleting the original file. I used the unlink and it deleted the original file leaving me with a broken symbolic link to clean up.
Basically I need to know how to unlink a symbolic link without removing the original file.
Second, how to clean up the broken symbolic links to free the inodes.
Thanks any help would be greatly appreciated.
How to remove a symbolic link?
- date: August 5, 2009
I make a symbolic link with:
ln -s /var/log/jboss/test/log
Now I want to delete or remove this symbolic link. I use the following command:
rm -rf /var/log/jboss/log
But as I use the ls -l to check, this symbolic link is still there:
log -> /var/log/jboss/test/log
Someone has idea?
How to create symbolic link to html file and avoid page link problem?
- date: January 29, 2008
I have 'docs' folder which is normal programming document.
When I try to create sym link for it, so I can access the page with ease,
with the following command.
[SOLVED] How to create symbolic link to device file from driver
- date: November 30, 2012
I am writing a driver in linux kernel wherein i want to create device file from driver itself using device_create() function. e.g. /dev/mydfolder/mydevice.
Now i have two questions,
1. Is there a way to create folder under /dev/ directory from driver ?
2. I also want same device to be accessed through alias device
e.g. /dev/mydfolder/mydevice should also be accessible through /dev/mydfolder/mydevice-alias
so is it possible to create symbolic link from driver ?
How can I remove symbolic links?
- date: April 18, 2006
I would like to know how can I remove symbolic link, e.g.,
Is there a way to remove a symbolic link
- date: November 30, 2004
I was installing MySQL earlier today and the manual says to make a symbolic link to the mysql folder. But when I tried that I got an error saying that mysql already exists. So I'm wondering if there's a way that I can remove a symbolic link and if there is a way to find what a given link is linked to. Maybe there is a system config file with all the links in them or something.
How to delete a symbolic link
- date: June 6, 2004
I have made a symbolic link by mistake. How to delete it?
rm -rf doesnt work.
How do i remove a link made with ln?
- date: June 19, 2004
I made the following link and realised i didn't need it, and its preventing my stuff from working:
ln -sf /dev/dsp /dev/dsp1
now how do i remove it?