Copy Files and Folders on Linux

The cp command is one of the basic Linux commands for copying files and directories from one location to another.

When copying files from source to destination, the source file name does not change, but we can change the target file name if we need to.

cp [Option] [Source] [Destination]

+----------------------------------------------------------+
| Option |               Description	                   |
+----------------------------------------------------------+
|   -v   | Verbose mode (Show Progress)                    |
|  -r/R  | Copy Directories Recursively                    |
|   -n   | Don't overwrite an existing file                |
|   -d   | Copy a link file                                |
|   -i   | Prompt before overwrite                         |
|   -p   | Preserve the specified attributes               |
|   -b   | Make a backup of each existing destination file |
+----------------------------------------------------------+

Copy a File from One Location to Another in Linux Using the cp Command

Click Here

Tags: Folders Linux