On Mon, 11 Aug 2014 01:15:31 -0400 (EDT), Reco wrote: > > While dd can be used to copy a directory, it cannot be used alone for > this task. Try this: > > ... > > cp -a /var/www/* /media/lin50
This may work if there are no "hidden" files in the directory (files whose names begin with a period), and if there are no files with embedded blanks in their names, etc. But as a more general approach, I suggest cp -a /var/www/. /media/lin50 The above handles all of the aforementioned special cases. This copies the entire directory tree below /var/www, including subdirectories, which I assume is the OP's intent. -- .''`. Stephen Powell : :' : `. `'` `- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/934232671.292074.1407755806595.javamail.r...@md01.wow.synacor.com