How do I copy directories in Linux?

How do I copy directories in Linux?
Answer
In order to copy a directory on Linux, you have to execute the “cp” command with the “-R” option for recursive and specify the source and destination directories to be copied. As an example, let’s say that you want to copy the “/etc” directory into a backup folder named “/etc_backup”.
 

Tìm kiếm

Back
Top