linux copy files and dir code example
Example 1: copy folder linux
cp -R dir1 dir2
Example 2: how to copy file to another directory in linux
cp -r <FILEPATH> <WHEREYOUWANTTOCOPYTO>
#for example
cp -r /home/thor/asia.txt /home/thor/
cp -R dir1 dir2
cp -r <FILEPATH> <WHEREYOUWANTTOCOPYTO>
#for example
cp -r /home/thor/asia.txt /home/thor/