1819866 Members
2747 Online
109607 Solutions
New Discussion юеВ

deleting symbolic links

 
SOLVED
Go to solution
Ravinder Singh Gill
Regular Advisor

deleting symbolic links

how do i remove/delete symbolic links?
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: deleting symbolic links

You simply rm them. For example, if mylink is a symbolic link for myfile then "rm mylink" will remove only the link leaving myfile alone. It's also possible to "rm myfile" and that will leave mylink pointing to nothing --- which is legal as well although when you attempt to open the file mylink points to, you will get an error.
If it ain't broke, I can fix that.
jayachandran.g
Regular Advisor

Re: deleting symbolic links

Hi Ravinder Singh

You can use the ordinary rm command to delete the symbolic links but which file you want to delete the source r the destination.
then make sure that you are deleting all the files.

you can use ls -L command to knoww the links of a file.

bye bye

Ravinder Singh Gill
Regular Advisor

Re: deleting symbolic links

Thanks for your help