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

Explain the steps that a shell follows while processing a command.

0 Answers  


How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.

3 Answers   Amazon, MBA, Syntel, TCS, Unisys,


how will you login one server's shell prompt to an another server?

5 Answers   Cosmic Infotech, Perot Systems,


what is the significance of "su" command?

3 Answers  


which command is used to identify the type of the file?

3 Answers  






Can a process kill itself in UNIX/or in its various versions?

2 Answers  


What Command will remove a Directory in UNIX?

8 Answers   IBM,


What does 'mkdir' command do in UNIX?

0 Answers   Syntel, Visa,


What command a user use to view a long text file one page at a time in UNIX?

8 Answers   IBM,


what are the different operating systems available?

3 Answers  


What does sed command do in unix?

0 Answers  


Which command is used to kill the last background job?

0 Answers  


Categories