How to copy multiple files and directories into some other
directory?

Answer Posted / sangu

If suppose the current working directory is test
i.e /home/test which contains the subdirectories test1
test2 if test2 to be copied in test1 the command is
cp test2 test1/
Now test1 will contain the test2 directory

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

964


How do I search for a file in unix command?

552


What is grep command in unix with examples?

614


What command is used to switching between users in unix?

566


Explain command to display different lines that are found when compare two files?

678






Can you explain a little bit about command substitution?

612


What does pipe () return?

600


Which unix command lists files/folders in alphabetical order?

622


What is grep and how do you use it?

581


What difference between cmp and diff commands?

729


Which command can you use to find the currently running process in unix server?

592


What is the use of the tee command?

602


What is the unix command to confirm a remote host is alive or not?

594


What does the metacharacter mean?

614


What is the search command in unix?

609