Monday, December 15, 2014

Copy source to destination in ubuntu

$ 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