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

Answers were Sorted based on User's Feedback



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

Answer / chets

cp <src_file1> <src_file2> <src_file3> <dest_dir>

In this case, each of the source files is copied into the
destination directory. This form of the command can be used
to copy all files in one directory into another directory.

Is This Answer Correct ?    3 Yes 2 No

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

Answer / sangu

sorry for the previous post
cp -r test2 test1/
will work.

Is This Answer Correct ?    2 Yes 2 No

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

Answer / shami.r

cp -r source_directory destination_directory

Is This Answer Correct ?    3 Yes 4 No

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

Answer / 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

More Unix Commands Interview Questions

What is a command and examples?

0 Answers  


how to sort the content of the file based on numeric values

0 Answers   Epsilon,


What is the procedure of "at" and crontab" commands?

4 Answers  


What's a command word?

0 Answers  


what does a process mean?

7 Answers   Infosys,






What command is used to replace the existing string with some other?

8 Answers   TCS,


What is the use of awk command in unix?

0 Answers  


How do you list the files in an UNIX directory while also showing hidden files?

6 Answers  


How to remove a crontab file?

2 Answers  


use of ls command

9 Answers  


Name the various commands that are used for the user information in unix.

0 Answers  


What is s and g in sed command?

0 Answers  


Categories