-   Linux - General (
-   -   moving a symlink in a directory (

e1000 02-22-2004 01:54 AM

moving a symlink in a directory
Lets say that I have a directory "/test/" and in that I have a file "/test/mydoc.txt" and I made symlink called "/test/yourdoc.txt" that points to "mydoc.txt"

How could I more or copy that directory to another location in such a way that it didnt break the symlink (so that its still linked to the same file that is now in a new directory).

and no I dont want to relink it manually cause where I need to do it, theres like 20 links.

acid_kewpie 02-22-2004 03:01 AM

you should create the symlink correctly in the first place, usnig a relative path, rather than an absolute one. if the link points to "./mydoc.txt" and not "/test/mydoc.txt" then you won't have a problem

e1000 02-23-2004 05:09 PM

heres the thing, when i tried to install this program, it wont install normally, it just gives me a directory with /lib/ and /usr/lib/ and the new contents are in those directorys.

i need to copy the files from /directory/lib/ into /lib/ and i need to copy the stuf from /directory/usr/lib/ into /usr/lib/. heres where the problem is. all the stuf in the /directory/lib/ is linked relatively. but some of the stuf in /directory/usr/lib/ is linked to /directory/lib .

so does anyone know how to do this without manually relinking all the files?

All times are GMT -5. The time now is 01:02 AM.