Answer Posted / 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 View All Answers
What is the command to find hidden files in the current directory?
What is the difference between grep and grep?
How do I search a whole word in vim?
What are reported commands?
What do chmod, chown, chgrp commands do?
How do I clear my terminal history?
What does the “echo” command do?
What is the use of finger command?
What is merge command in unix?
What is the first character of the output in ls l command?
What is pipe command in unix?
What is time_t?
How does shebang work?
Which command can you use to find the currently running process in unix server?
What do chgrp command do?