Copy a directory or a folder using linux command - Linux Views : 391
Tagged in : Linux
0 0
Send mail
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.
By Sanju, On - 2009-10-29



    Login to add Comments .