188
49
I have directory that contains some symbolic links:
user@host:include$ find .. -type l -ls
4737414 0 lrwxrwxrwx 1 user group 13 Dec 9 13:47 ../k0607-lsi6/camac -> ../../include
4737415 0 lrwxrwxrwx 1 user group 14 Dec 9 13:49 ../k0607-lsi6/linux -> ../../../linux
4737417 0 lrwxrwxrwx 1 user group 12 Dec 9 13:57 ../k0607-lsi6/dfc -> ../../../dfc
4737419 0 lrwxrwxrwx 1 user group 17 Dec 9 13:57 ../k0607-lsi6/dfcommon -> ../../../dfcommon
4737420 0 lrwxrwxrwx 1 user group 19 Dec 9 13:57 ../k0607-lsi6/dfcommonxx -> ../../../dfcommonxx
4737421 0 lrwxrwxrwx 1 user group 17 Dec 9 13:57 ../k0607-lsi6/dfcompat -> ../../../dfcompat
I need to copy them to the current directory. The resulting links should be independent from their prototypes and lead directly to their target objects.
cp -s
creates links to links that is not appropriate behavior.cp -s -L
refuses to copy links to directoriescp -s -L -r
refuses to copy relative links to non-working directory
What should I do?
2
cp -R
on a mac – Mirko – 2015-05-06T19:23:24.52710
cp -d
made the job on my side. – m-ric – 2014-03-24T17:08:07.963