In this tutorial, we will introduce you how to copy a directory to other directory in linux. It is easy to do. We can use command below:
cp -r sr_directory dest_directory
This command will copy sr_directory to dest_directory.
We will use an example to show you how to do.
Look at this example:
cp yuzhilun /app/yuzhilun
We will see: