How to copy contents from a directory and not symbolic link?

Linux

Linux Problem Overview


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

Linux Solutions


Solution 1 - Linux

From cp(1):

   -L, --dereference
          always follow symbolic links in SOURCE

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKamathView Question on Stackoverflow
Solution 1 - LinuxFred FooView Answer on Stackoverflow