$ sudo cp -a
Source_Folder Destination_Folder
or
$ sudo cp -R Source_Folder Destination_Folder
The -a
flag turns on recursive behaviour (which can also be done with the -R
flag),
and will also attempt to preserve metadata such as file ownership, permissions, timestamps, links, etc.
No comments:
Post a Comment