Copy a directory or a folder using linux command
by Sanju[ Edit ] 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.