how to copy and paste directory in linux using terminal code example Example: copy folder linux cp -R dir1 dir2