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

Answers were Sorted based on User's Feedback



hi i have directories within the directory. Now i want to copy the directory along with all directo..

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

hi i have directories within the directory. Now i want to copy the directory along with all directo..

Answer / vijayahire

cp -r /home/data/files/* Desktop/backup



location where u want paste

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More Unix Commands Interview Questions

In UNIX, what is the command to kill a process?

10 Answers  


What is nr in awk command?

0 Answers  


what is the difference between KILL and KILL -9?

5 Answers   Informatica, Nutanix,


How to find and replace the below command?

2 Answers   HCL,


Through which command will redirect output to bOth screen and files at the same time?

3 Answers  






can we use cat command as an editor ..???

12 Answers   TCS,


What is the difference between awk and grep?

0 Answers  


Write a command to find all of the files which have been accessed within the last 30 days.

14 Answers   Cisco,


Where can I get the free download of Unix by Yeswant Kanetkar?

5 Answers  


What command is used to switching between users in unix?

0 Answers  


Does cp command overwrite files?

0 Answers  


What is ‘ps’ command for?

0 Answers  


Categories