Javascript Menu by Deluxe-Menu.com
Copying directories

Copying directories

To copy a directory use the command:

   cp -r directory1 directory2

This copies directory1 and everything that it contains to directory2. The directory is created if it does not exist.

If directory2 does exist then directory1 is created as a subdirectory within it.


[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:30 am and is maintained by webmaster@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2009 Rutgers, The State University of New Jersey. All rights reserved.