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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate cat command from more command.

664


What is in grep command?

738


Which unix command to make a new directory?

687


Can you explain a little bit about command substitution?

709


What are file commands?

747






How do I find previous commands in unix?

681


What does sed command do in unix?

657


What is nr in awk command?

695


What does the command '$ls | wc –l > file1' do?

782


Is it inbetween or in between?

658


What are reported commands?

658


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

760


What is unix command?

689


What is the difference between cat and more command?

759


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

884