How cp command works in linux?



How cp command works in linux?..

Answer / Priya

"The 'cp' command in Linux is used to copy files and directories. The basic syntax is 'cp source destination'. For example, 'cp file1 file2' will create a copy of 'file1' as 'file2'. If 'destination' already exists, it will be overwritten. To copy a directory with its contents, use 'cp -r source destination'."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

when zombie process fully cleared?

4 Answers   HP,


How do I find the process id in linux?

1 Answers  


How do I find old commands in linux?

1 Answers  


What u know abt tar Command?

5 Answers   Locuz,


What command would you use to create an empty file without opening it to edit it?

1 Answers  


what is the diff b/w ext2 and ext3?

5 Answers  


Explain the linux directory commands along with the description?

1 Answers  


How do I permanently delete linux history?

1 Answers  


What is Write Command?

3 Answers  


What is the difference between find and locate command in linux?

1 Answers  


How will you execute a java program inside a kornshell script?

1 Answers   HP,


how do you configure linux system as a router?

5 Answers   HP,


Categories