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 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?
How do I fix a broken Symbolic Link?
- date: November 7, 2004
I am running Netscape 7.1 on RedHat 8.0. Some of the website I visit use Java applets, and the JRE was not included in the Netscape install. I went to the Netscape site to get the plugin which directed me to the Sun site for the actual download. I was able to install the downloaded file and the resulting plugin was placed exactly where the instructions said it would be.
The instructions also said to do not copy the plugin program to the plugin directory, but to create a sybolic link, or pages containing applets would fail. When I created the link it shows on the ls display as blinking red, and in nautilus shows as a broken link.
Here are the commands I used to create the link. I am logged in as root.
ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so
The program does exist in the target directory with permissions 755. The broken link has permissions 777.
Any help would be appreciated. I normally try all I can think of t