i have a folder with symlinks:
marek@marek$ ls -al /usr/share/solr/
razem 36
drwxr-xr-x 5 root root 4096 2010-11-30 08:25 .
drwxr-xr-x 358 root root 12288 2010-11-26 12:25 ..
drwxr-xr-x 3 root root 4096 2010-11-24 14:29 admin
lrwxrwxrwx 1 root root 14 2010-11-24 14:29 conf -> /etc/solr/conf
i want to copy it to ~/solrTest but i want to copy files from symlink as well
when i try to cp -r /usr/share/solr/ ~/solrTest
i will have symlink here:
marek@marek$ ls -al ~/solrTest
razem 36
drwxr-xr-x 5 root root 4096 2010-11-30 08:25 .
drwxr-xr-x 358 root root 12288 2010-11-26 12:25 ..
drwxr-xr-x 3 root root 4096 2010-11-24 14:29 admin
lrwxrwxrwx 1 root root 14 2010-11-24 14:29 conf -> /etc/solr/conf
coreutilspackage installed (brew list coreutils), you may use-Lr. However,-LRworks universally, so is a better choice for scripts.You can check which
– Skylar Brown Apr 21 '23 at 21:48cpyou have withman cp | tail -n1, e.g. a system without GNU coreutils:BSD February 23, 2005 BSDand a system with GNU coreutils:macOS 13.3 February 23, 2022 macOS 13.3