1834788 Members
2660 Online
110070 Solutions
New Discussion

Re: removing soft link

 
SOLVED
Go to solution
Inesa Clinko
Advisor

removing soft link

Hi!
The following link is used to keep content of "dirname" and "/OV/dirname" equal.

lrwxr-xr-x dirname -> /OV/dirname.

How I could remove this link and the all
"/OV/dirname" without touching the content of "dirname"?



2 REPLIES 2
Mark Greene_1
Honored Contributor
Solution

Re: removing soft link

You cannot, as the content of "dirname" is really the content ov /OV/dirname. What it appears you want is a seperate, real directory "dirname" with a copy of all the content from "/OV/dirname". If that's the case, remove the link, mkdir "/dirname" and then "mv /OV/dirname/* /dirname" and "mv "/OV/dirname/.* /dirname" and then "rmdir /OV/dirname"

mark
the future will be a lot like now, only later
Arturo Galbiati
Esteemed Contributor

Re: removing soft link

Hi,
you have to remove the link:
rm dirname
and move the /OV/dirname to dirname:
mv /OV/dirname dirname
it this point you have the dirname equal to /OV/dirname and the /OV/dirname removed.

HTH,
Art