Ubuntu – How do I copy one directory to another?

Problem: You are trying to copy one directory to another directory.

Solution: sudo cp -a /yourdirectory/ . /destination/

  -a, --archive
              same as -dR --preserve=all


Leave a Reply

Your email address will not be published.