How to copy Entire Directory in Linux
Published: July 20, 2008 , Updated: May 31, 2010 , Author: mkyong
Command is simple, here i provide two samples to show how to copy entire directory in linux.
cp -r sourcedir targetdir
for instance,
1) Copy anything from current directory to /usr/local/download
cp -r * /usr/local/download
2) Copy whole directory (include content) /usr/local/fromdownload to target /usr/local/download
cp -r /usr/local/fromdownload /usr/local/download
Any Java questions or problems? please post at this JavaNullPointer.com forum, see you there ~
Thanks for such a informative blog.