How Do I Copy a Folder to Another Directory in Linux?
Contents How Do I Copy a Folder from One Directory to Another in Linux? Copy a Directory and Its Contents ( Cp -R ) Similarly, You Can Copy an Entire Directory...
Contents
How do I copy a folder from one directory to another in Linux?
Copy a Directory and Its Contents ( cp -r )
Similarly, you can copy an entire directory to another directory using cp -r followed by the directory name that you want to copy and the name of the directory to where you want to copy the directory (e.g. cp -r directory-name-1 directory-name-2 ).
Must Read
How do I copy a folder to another folder?
Copying files (cp command)
- To make a copy of a file in the current directory, type the following: cp prog.c prog.bak. …
- To copy a file in your current directory into another directory, type the following: cp jones /home/nick/clients.