How to copy contents from a directory and not symbolic link?
LinuxLinux 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