Exercise: Copy a Tree To Remote Machine (And Adjust Permissions)¶
In
Exercise: Verify, Repeat
(and the exercise series that preceded it), you created an entire file
hierarchy on the local machine (your work machine), rooted at
/tmp/parent
.
Continuing from there …
Copy that tree to the remote machine, under the name
~/my-parent-copy
. Use thescp
command to do this.Use one single local
ssh
command to tune the permissions of the remote tree~/my-parent-copy
(and its contents, recursively) so that others don’t have any permissions to do anything.(Hint: you can use the
-R
option to thechmod
command to modify permissions recursively)