How can you copy files or directories?



How can you copy files or directories?..

Answer / hr@tgksolutions.com

To duplicate files or directories, UNIX offers the cp command. For copying files, the syntax is cp source_file destination_directory/. If duplicating a directory, the -r option (meaning recursive) must be added, as in cp -r source_directory destination_directory/. This ensures all sub-files and sub-directories are replicated too. The cp command is fundamental when backing up data or creating duplicate research resources.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

distinguish between interrupts and exceptions?

2 Answers   Infosys, Wipro,


What does #!/ Bin sh do?

0 Answers  


How to get the operating system's information in unix?

6 Answers   IBM, TCS,


What does grep v grep do?

0 Answers  


What are the unix commands?

0 Answers  


What are awk commands?

0 Answers  


What is grep and sed command?

1 Answers  


What is time_t?

0 Answers  


What are the general commands in using unix os for a beginner?

0 Answers  


How do you move a process which is running background to foreground?

9 Answers  


fork in unix ?

4 Answers   BFL,


In vi editor how do you execute unix commands?

10 Answers  


Categories