Copy a directory or a folder using linux command

by Sanju 2009-10-29 10:41:08

Copy a directory or a folder using linux command

To copy a directory with all subdirectories and files use the Linux / Unix cp command. Below is an example command of how you would use the cp command to copy files.

cp -r /home/hope/files/* /home/hope/backup


In the above example the cp command would copy all files, directories, and subdirectories in the /home/hope/files directory to the /home/hope/backup directory.

Tagged in:

1205
like
0
dislike
0
mail
flag

You must LOGIN to add comments