Cannot remove symbolic link to directory.
location: linuxquestions.com - 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
location: ubuntuforums.com - 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
location: linuxquestions.com - 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?
location: linuxquestions.com - 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 for linux web server
location: linuxexchange.com - date: July 28, 2014
How to create the symbolic link for the path on web server(linux).
Suppose I want to create link for request url
And the file is present on server at location
Do anyone know about it????
How to copy symbolic link file from Linux to Windows and then back to Linux but still keeping it as a symbolic link
location: linuxexchange.com - date: April 30, 2014
I have a symbolic link in my Linux machine.
I want to copy just the symbolic link (not the target) to a Windows machine and then copy this symbolic link from Windows machine back to some other Linux machine and symbolic link should continue to work.
What I tried:
I gziped the symbolic link
Moved gzipped file to Windows machine using WinSCP
Extracted symbolic link
Moved symbolic file to Linux machine using WinSCP
Now this file is not a symbolic link anymore.
Do anybody knows a trick to do this?
How to create symbolic link to html file and avoid page link problem?
location: linuxquestions.com - 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
location: linuxquestions.com - 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?
location: linuxquestions.com - 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
location: linuxquestions.com - 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.
Page: 1 2 3 4 5 6 7 8 9 10