Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Copy symbolic link
Name: FrankK Date: May 13, 2003 at 06:02:26 Pacific OS: Solaris 8 CPU/Ram: UltraSPARC IIe+, 1GB
Comment:
How to copy directories containing symbolic links without converting the link into a directory? Is it possible to change owner/group of a symbolic link?
Name: zoozle Date: May 16, 2003 at 08:10:05 Pacific
Reply:
Don't know of a way to copy symbolic links directly, but using chown and chgrp with the -h flag should help change the owner and group of a symbolic link.
0
Response Number 2
Name: SuicidalLabRat Date: June 4, 2003 at 17:39:06 Pacific
Reply:
You can tar (CD && tar) the structure to maintain the links. mv should retain links as well, however, they remain relative if the node was created that way. I am not real clear if I am addressing your question though...
i.e. tar cf - ./moving_dir | ( cd /unpack-here_dir && tar xfB - )
I guess you dont truly need the 'B', but you can protect a bit from socket short reads ( though I recall tar trying to implement this function automatically when reading from stdin ) and the pipes same failing. Again, relative links to a file not part of your copied structure will be broken. If you anticipate the need for such links and a likelihood of cp'ing them around a lot you will need to set the ./link -> /path/to/file appropriately.
Summary: hi, Anybody know if its possible to setup symbolic links using a finishscript in a custom jumpstart installation? Jumpstart uses /a as the root install until it is done but will the link made with: ln...
Summary: A hard link cannot span file systems. A soft link can point to files anywhere on the network. All hard links share the same inode number. Each soft link has a unique inode number. If you delete the so...