hi i have directories within the directory. Now i want to
copy the directory along with all directories included in it
to one location by using copy command? what is the command

Answer Posted / anshul basra

Try this command:

cp -r /home/anshul/files/* /home/anshul/backup

It will recursively copy all the content of directory
called 'files' to the directory 'backup'.

Hope this will help you..!
Takecare..

Is This Answer Correct ?    29 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the system know where one command ends and another begins?

1586


What difference between cmp and diff commands?

734


Why is grep called grep?

793


What is time_t?

596


Does cp command overwrite files?

634






What is the difference between grep and grep?

577


What is nr in awk command?

619


What happens when we execute a unix command?

608


What is awk used for?

628


Is command prompt unix?

592


How do you repeat a command in terminal?

602


Enlist some filename manipulation commands in unix.

562


Which unix command to make a new directory?

598


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

594


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)?

971