I want to copy all files and folders from one directory to another without changing the permissions of the destination directory.
Where origin folder is 555 and destination folder is 775. If I use command below, the destination is changed to 555. I don't want this.
cp -r /origin/. /destination
What is correct syntax to copy contents of /origin? So that /destination remains 775
I do not have sudo.
ls
of what you had before, show us what you did, and then anls
of what you have at the end (add to question).ls -ld /origin /destination; cp -r /origin/. /destination; ls -la /destination