It depends on how the command is invoked:
cp -r source/* destination/
That won't copy hidden files and directories.
cp -r source/. destination/
That will get the hidden files and directories.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 12/24/2012 11:25 AM, Earnie Boyd wrote:
On Fri, Dec 21, 2012 at 11:31 PM, Richard Damon wrote:
Note that cp does not copy "hidden" files (files that begin with .) by default. Since you specified /var/www/drupal/ (with the trailing /) it only selected the "normal" files in that directory. I think if you had specified the source as /var/www/drupal (with without the slash) then you get the hidden files.
I've never heard this before and really do not believe you based on experience. Can you please point us to the documentation that states that?