How do I copy and paste a directory in Linux terminal?

How do I copy and paste a directory in Linux terminal?
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