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]