Linux CP Command

cp command is used to copy a file or group of file one location to another location.

Syntax

$cp [source] [destination]

Example


$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.

Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!