How Do I Copy and Paste a Folder in Ubuntu?
Contents How Do I Copy and Paste a Folder in Ubuntu Terminal? in Order to Copy a Directory on Linux, You Have to Execute the “Cp” Command with the “-R” Option...
How do I copy and paste a folder in Ubuntu terminal?
In order to copy a directory on Linux, you have to execute the “cp” command with the “-R” option for recursive and specify the source and destination directories to be copied. As an example, let’s say that you want to copy the “/etc” directory into a backup folder named “/etc_backup”.
Must Read
How do I copy a folder from one directory to another in Ubuntu?
Copying Directories with cp Command
To copy a directory, including all its files and subdirectories, use the -R or -r option. The command above creates the destination directory and recursively copy all files and subdirectories from the source to the destination directory.