How to copy multiple files and directories into some other
directory?
Answers were Sorted based on User's Feedback
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 |
Answer / sangu
sorry for the previous post
cp -r test2 test1/
will work.
| Is This Answer Correct ? | 2 Yes | 2 No |
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 |
how will u execute a file in unix
How do you create a directory in UNIX?
What is the difference between udp and tcp?
distinguish between interrupts and exceptions?
How do you find which version and name of unix you are using at the command prompt?
How to delete a directory containing files and folders?
The rm command removes links to file. What does this mean? How then is a file deleted from the file system?
Which command can you use to find the currently running process in unix server?
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
How to convert a hidden file to normal visible file?
How to find and replace the below command?
which command is used to change group?