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 |
what is tar command and what are the different types of tar commands?
How to convert a hidden file to normal visible file?
Which unix command to make a new directory?
How to setup Disk space as well as memory in solaris10?
what is the use of "grep" command?
What are filter commands in unix?
what do you understand by 'building block primitive'?
Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.
8 Answers Concentrix, IBM, Symantec, TCS,
What are the general commands in using unix os for a beginner?
what will this do $cat > file.c ?(file.c is a file in current directory)
What is the difference between Shell Programming and Shell scripting?
10 Answers HCL, TCS, Wipro,
how to find largest file?
14 Answers HCL, Microsoft, Thomson Reuters,