cp command is used to copy a file or group of file one location to another location.
$cp [source] [destination]
$cp file1.txt file2.txt
Sr.No |
Options |
Descriptions |
---|---|---|
01 |
-a |
create archive copies of file. |
02 |
-b |
make a backup copy of existing destination files that will be deleted by the copying operation. |
03 |
-f |
remove existing destination files without prompting for conformation. |
04 |
-i |
prompt before overwriting existing destination files. |
05 |
-v |
show messages explainig what the command is doing. |