How to copy symlinks to target as normal folders
cp -Lr /usr/share/solr/ ~/solrTest
Check the man
page for unix commands with man cp
-L, --dereference
always follow symbolic links in SOURCE
From man page:
‘-L’ ,‘--dereference’ - Follow symbolic links when copying from them. With this option, cp cannot create a symbolic link. For example, a symlink (to regular file) in the source tree will be copied to a regular file in the destination tree.
So this is the option you should try.
cp -r -L /usr/share/solr/ ~/solrTest
From the cp(1)
man page:
-L, --dereference always follow symbolic links in SOURCE