cp -a: Archive mode, preserve all permissions, links, attributes and so on.
cp -i: Prompt before overwrite (overrides a previous -n option).
cp -r and cp -R: Copy directories recursively.
cp -u: Copy only when the SOURCE file is newer than the destination file or when the destination file is missing.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.