50

on a directory cp -rvf dir . copies the symbolic links and not actual contents. src is copied to module/hal/

.
|-- comm
|   `-- alchemist.c
|-- module
|   `-- hal
|       `-- src
|           `-- comm -> ../comm
`-- src
    `-- comm -> ../comm
4

1 に答える 1

91

From cp(1):

   -L, --dereference
          always follow symbolic links in SOURCE
于 2012-05-24T13:44:18.853 に答える