My OS states the following in the man page of cp:
-H follow command-line symbolic links -L, --dereference always follow symbolic links
I am having difficulty figuring out what a "command-line symbolic link" is.
There's no such thing as a command-line symbolic link. The man page refers to links that occur on the command line, i.e., as arguments to the cp command.
will copy the directory source and all its contents inside the directory dest. If source is a symlink to a directory, cp will dereference the symlink, i.e., copy the directory source points to. However, if cp encounters any symlinks in source's subdirectories, it will create symlinks in the destination folder.
behaves similarly. However, it will also dereference symlinks in source's subdirectories, i.e., copy the files those symlinks point to.
That doesn't help much, I think; perhaps an example will clarify it better. (In
See how that works? At line 6, I issued