how to copy link with cp?

Hello, friends,

today I tried to copy some files including the links under a certain folder with command cp. The files I could copy. But I failed in copying the links sometimes. System reported “can’t unlink the file”. What does it mean? In fact I didn’t want to delete anything. Why is system not so stable, why somethimes I could, sometimes I could not? How can I copy link?

Thanks.

Fanweik,

What copy command parameters did you use?

You need to make sure you use the -R parameter if you want to copy links.

Tim